News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

David Stockton's Blog:
Zend JSON - An Introduction
August 24, 2011 @ 08:17:12

David Stockton has a new post to his ZendTutorials.com site today introducing you to an increasingly more handy Zend Framework component that can make your messaging needs easier. The new tutorial introduces you to Zend_Json, a component for generating and parsing JSON messages.

In the past few years, JSON, or JavaScript Object Notation has seemed to overtake XML and other data encoding methods on the web. [...] I've also seen numerous examples of developers who create their own sort of JSON encoder rather than either using json_encode or using Zend_Json. What inevitably comes back to bite them is when the data they are encoding contains a special character like quotes, colons, curly brackets, etc.

He demonstrates how the Zend_Json component helps to alleviate some of the worries with built-in features that handle everything from basic encoding/decoding, printing out results in a "pretty" way and a handy way to include executable Javascript (once it's evaled on the other side) in your payload. He finishes the tutorial off with a mention of a very handy method that will please those already having to work with XML - the fromXML() method that automagically converts the data over to JSON for you.

0 comments voice your opinion now!
zendjson json zendframework introduction xml encode decode expression


blog comments powered by Disqus

Similar Posts

International PHP Magazine: Poll: In Which of the following Symfony takes over Zend Framework?

Zend Developer Zone: Zend Webinar Wednesdays: Zend Framework 1.0 - An Overview

DZone.com: DevOps for Devs in 3 Steps (Presentation)

RawSEO Blog: Using smarty templates

MaltBlue.com: Zend Form Mastery with Zend_Config - Part 2, Core Form Configuration


Community Events

Don't see your event here?
Let us know!


example performance opinion framework php7 interview extension install community introduction symfony2 podcast release api version library series voicesoftheelephpant laravel conference

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework