JSON
[ class tree: JSON ] [ index: JSON ] [ all elements ]

Class: JSON

Source Location: /inc/cpaint/json.php

Class Overview


a JSON parser / generator


Author(s):

Version:

  • 1.0.1

Methods



Class Details

[line 27]
a JSON parser / generator



Tags:

author:  Dominique Stender <dst@dmc.de>
version:  1.0.1
access:  public


[ Top ]


Class Methods


method assoc [line 398]

void assoc( )

handles objects



Tags:

access:  public


[ Top ]

method obj [line 351]

void obj( )

handles objects



Tags:

access:  public


[ Top ]

method parse [line 191]

mixed parse( string $text)

parses the given string into a PHP data structure



Tags:

access:  public


Parameters:

string   $text   JSON data representation

[ Top ]

method stringify [line 59]

string stringify( mixed $arg)

takes an arbitrary PHP data structure and generates a valid JSON representation from it



Tags:

version:  1.0.1 fixed tests whether $s has content by using strlen(). this enables the user to use 0 as very first character
access:  public


Parameters:

mixed   $arg   an arbitrary PHP data structure

[ Top ]


Documentation generated on Mon, 03 Aug 2009 21:33:17 +0200 by phpDocumentor 1.4.2