Example #1
0
 static function UnPackJsonObject($bytearray, &$seek, $tagfirst, $pubdict, $localdict)
 {
     $_object = new stdClass();
     $count = JsonPack::ReadCountHead($bytearray, $seek, $tagfirst);
     $keys = array();
     for ($i = 0; $i < $count; $i++) {
         $ft = $bytearray[$seek];
         $seek++;
         $keys[] = JsonPack::ReadString($bytearray, $seek, $ft, $pubdict, $localdict);
     }
     for ($i = 0; $i < $count; $i++) {
         $_object->{$keys}[$i] = JsonPack::UnPackJson($bytearray, $seek, $pubdict, $localdict);
     }
     return $_object;
 }