Hi all, I've been going through the JsBaseEngineHelper code, and I've been trying to figure out which is the proper method to use when sending JSON-encoded output. Among things I noticed are that JsHelper::value() does the simple data type detection + translation into JSON string, and that JsHelper::object() does the heavy-lifting, converting arrays and PHP objects into JSON. These methods also call each other, depending on wether the value being tested is scalar or not. Other than that, I also noticed that simple floats processed with JsHelper::value() are padded with 11 zeros after the float, while others processed with JsHelper::object() are not.
So the question is, which is the recommended method of writing JSON strings when both of the output are essentially the same? Cheers, OJ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
