Programmer's Reference Guide

Zend_Json

導入

Zend_Json は、PHP のネイティブデータを JSON 形式にシリアライズしたり、JSON のデータを PHP のネイティブデータに戻したりする便利なメソッドを提供します。 JSON についてのより詳細な情報は、» JSON プロジェクトのサイト を参照ください。

JSON (JavaScript Object Notation : JavaScript によるオブジェクト記法) は、JavaScript とその他の言語との間のデータ交換を行うために用いられます。 JSON は JavaScript によって直接評価されます。そのため、JavaScript クライアントとのデータ交換に使用する書式としては、 XML より効率的で軽量なものとなります。

さらに Zend_Json には、任意の XML 文字列を JSON 形式に変換する機能も用意されています。 この機能を使用すると、エンタープライズアプリケーションの XML データを Ajax アプリケーションで使うための JSON に変換することが簡単にできるようになります。 また、ブラウザ側のアプリケーションでわざわざ XML をパースさせるような手間を省けます。 これを使用すると、 アプリケーション固有のデータ処理が簡単に実装できるようになるでしょう。


Zend_Json

Comments

Im learning <a href="http://www.geniusport.com/mobile-applications-programming-courses">iPhone App Development Course</a> but my background is related to database and Php. I believe its shear simplicity of the Zend framework which makes it a fav among developers. Very easy to follow guide and tons of resources. Thanks for all your hardwork.
Im learning <a href="http://www.geniusport.com/mobile-applications-programming-courses">iPhone App Development Course</a> but my background is related to database and Php. I believe its shear simplicity of the Zend framework which makes it a fav among developers. Very easy to follow guide and tons of resources. Thanks for all your hardwork.
Most interesting thing for developer is that this built-in feature will enable PHP developers to transform the enterprise data encoded in XML format into JSON format before sending it to browser-based Ajax client applications.Really like this feature

+ Add A Comment

Please do not report issues via comments; use the ZF Issue Tracker.

If you have a JIRA/Crowd account, we suggest you login first before commenting.

  • BBCode is allowed in the comment markup

  • Select a Version

    Languages Available

    Components

    Search the Manual