source: branches/dev/html/test/takayuki/test_json.php @ 12925

Revision 12925, 438 bytes checked in by nakanishi, 17 years ago (diff)
Line 
1<?php
2/*
3 * Created on 2007/05/17
4 *
5 * To change the template for this generated file go to
6 * Window - Preferences - PHPeclipse - PHP - Code Templates
7 */
8 
9 require_once('JSON.php');
10
11    $json = new JSON();
12
13    $obj = array(
14       id   => array("foo", "bar", array( aa => 'bb')),
15       hoge => 'boge',
16       no   => 123 ,
17       bo   => true
18    );
19   
20    $js = $json->encode($obj);
21    print "$js";
22 
23?>
Note: See TracBrowser for help on using the repository browser.