Zend_Json-Introduction.xml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.json.introduction">
  4. <title>Introduction</title>
  5. <para>
  6. <classname>Zend_Json</classname> provides convenience methods for serializing
  7. native <acronym>PHP</acronym> to <acronym>JSON</acronym> and decoding <acronym>JSON</acronym> to native <acronym>PHP</acronym>. For more information
  8. on <acronym>JSON</acronym>, <ulink url="http://www.json.org/">visit the <acronym>JSON</acronym> project
  9. site</ulink>.
  10. </para>
  11. <para>
  12. <acronym>JSON</acronym>, JavaScript Object Notation, can be used for data
  13. interchange between JavaScript and other languages. Since <acronym>JSON</acronym> can be
  14. directly evaluated by JavaScript, it is a more efficient and lightweight
  15. format than <acronym>XML</acronym> for exchanging data with JavaScript clients.
  16. </para>
  17. <para>
  18. In addition, <classname>Zend_Json</classname> provides a useful way to convert any
  19. arbitrary <acronym>XML</acronym> formatted string into a <acronym>JSON</acronym> formatted string. This built-in
  20. feature will enable <acronym>PHP</acronym> developers to transform the enterprise data
  21. encoded in <acronym>XML</acronym> format into <acronym>JSON</acronym> format before sending it to browser-based
  22. Ajax client applications. It provides an easy way to do dynamic data
  23. conversion on the server-side code thereby avoiding unnecessary <acronym>XML</acronym>
  24. parsing in the browser-side applications. It offers a nice utility
  25. function that results in easier application-specific data processing techniques.
  26. </para>
  27. </sect1>
  28. <!--
  29. vim:se ts=4 sw=4 et:
  30. -->