The following array when encoded into JSON :
$arr['12345'] = array('name1' => 'value1', 'name2' => 'value2', 'name3' => 'value3');
$arr['98765'] = array('name1' => 'value1a', 'name2' => 'value2a', 'name3' => 'value3a');
gives output of
{"12345":{"name1":"value1","name2":"value2","name3":"value3"},"98765":{"name1":"value1a","name2":"value2a","name3":"value3a"}}
|