This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
plugin_tutorial_data [2014/08/14 22:03] 127.0.0.1 external edit |
plugin_tutorial_data [2014/10/24 13:20] Christoph M. Becker [JSON] added info about XH_encode/decodeJson() |
||
---|---|---|---|
Line 34: | Line 34: | ||
==== JSON ==== | ==== JSON ==== | ||
- | JSON (JavaScript Object Notation) is very suitable for storing human readable and editable data. It's quite fast and easy to handle with PHP's json_encode()/json_decode(). Note however, that these functions are not available in PHP < 5.2, so you might consider to provide a fallback for older PHP versions (e.g. from the [[http://cmsimpleforum.com/viewtopic.php?f=29&t=5592|CMBUtils]]). | + | JSON (JavaScript Object Notation) is very suitable for storing human readable and editable data. It's quite fast and easy to handle with PHP's json_encode()/json_decode(). Note however, that these functions are not available in PHP < 5.2, so you might consider to provide a fallback for older PHP versions (e.g. from the [[http://cmsimpleforum.com/viewtopic.php?f=29&t=5592|CMBUtils]]). CMSimple_XH 1.6 introduced [[http://www.cmsimple-xh.org/dev-doc/php/XH/_cmsimple---functions.php.html#functionXH_encodeJson|XH_encodeJson]] and [[http://www.cmsimple-xh.org/dev-doc/php/XH/_cmsimple---functions.php.html#functionXH_decodeJson|XH_decodeJson()]], which provide such a fallback. |
==== XML ==== | ==== XML ==== |