Example #1
0
 public function toArray()
 {
     $data = Joy_File_Reader_Json_Helper::decode($this->_file);
     return new Joy_Array($data);
 }
Example #2
0
 function __endString(&$encode, $position, &$pos)
 {
     do {
         $position = strpos($encode, '"', $position + 1);
     } while ($position !== false && Joy_File_Reader_Json_Helper::__slashedChar($encode, $position - 1));
     if ($position === false) {
         trigger_error('', E_USER_WARNING);
     }
     return $position - $pos;
 }