NYCPHP Meetup

NYPHP.org

[nycphp-talk] Anybody using JSON parser?

Jon Baer jonbaer at jonbaer.com
Fri Apr 13 20:53:22 EDT 2007


It's all about the YAML :-) ...

http://spyc.sourceforge.net

On Apr 13, 2007, at 5:13 PM, Kenneth Downs wrote:

> Andromeda uses its own syntax for data files, which I would love to  
> get rid of.
>
> JSON strikes me as a worthy candidate.  Is anybody using it on the  
> server-side with enough confidence to answer this question:  Can I  
> type a file of JSON stuff by hand and convert it easily into a  
> nested associative array?
>
> The example from andromeda would be:
>
> table table_name {
>    module: demo;
>    description: My Table Name;
>
>   column example { primary_key: Y; }
> }
>
> which we convert into an associative array:
>
> $tables['table_name'] = array(
>    'module'=>'demo'
>    ,'description'=>'My Table Name'
>    ,'column'=>array(
>       'example'=>array('primary_key'=>'Y')
>   )
> );
>
> The only real need I have is a syntax that can easily specify  
> property-value pairs and nested elements which have their own  
> property-value pairs and their own nested elements and so on.
>
> -- 
> Kenneth Downs
> Secure Data Software, Inc.
> www.secdat.com    www.andromeda-project.org
> 631-379-7200   Fax: 631-689-0527
>
>
> -- Kenneth Downs Secure Data Software, Inc. www.secdat.com  
> www.andromeda-project.org 631-379-7200 Fax: 631-689-0527
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php




More information about the talk mailing list