OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML's greatest cultural advantage over JSON

PHP and Javascript  can transfer simple data in a very simple and
straightforward way with JSON.


$mydata = array("ok"=>true, "points"=>array( 0=>455.11,1=>552.4,2=>552.9));
echo json_encode($mydata);


<script type="javascript">

.../* jquery ajax object call */...
success: function(data){

   if( data["ok"]){
         process( data["points"] );

Its hard to beat this simplicity, and probably not even worth it.
Something even more simple than this is probably too simple.

JSON is the best tool in this domain,  simple data passing between a
server and a webbrownser.

ℱin del ℳensaje.

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS