Zend_Json-Introduction.xml 1.7 KB

123456789101112131415161718192021222324252627282930313233
  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 native
  7. <acronym>PHP</acronym> to <acronym>JSON</acronym> and decoding <acronym>JSON</acronym> to
  8. native <acronym>PHP</acronym>. For more information on <acronym>JSON</acronym>, <ulink
  9. url="http://www.json.org/">visit the <acronym>JSON</acronym> project 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
  20. string. This built-in feature will enable <acronym>PHP</acronym> developers to transform the
  21. enterprise data encoded in <acronym>XML</acronym> format into <acronym>JSON</acronym> format
  22. before sending it to browser-based Ajax client applications. It provides an easy way to do
  23. dynamic data conversion on the server-side code thereby avoiding unnecessary
  24. <acronym>XML</acronym> 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. -->