@@ 682-686 (lines=5) @@ | ||
679 | $key = $this->decode($parts[1]); |
|
680 | $val = $this->decode($parts[2]); |
|
681 | ||
682 | if ($this->use & SERVICES_JSON_LOOSE_TYPE) { |
|
683 | $obj[$key] = $val; |
|
684 | } else { |
|
685 | $obj->$key = $val; |
|
686 | } |
|
687 | } elseif (preg_match('/^\s*(\w+)\s*:\s*(\S.*),?$/Uis', $slice, $parts)) { |
|
688 | // name:value pair, where name is unquoted |
|
689 | $key = $parts[1]; |
|
@@ 692-696 (lines=5) @@ | ||
689 | $key = $parts[1]; |
|
690 | $val = $this->decode($parts[2]); |
|
691 | ||
692 | if ($this->use & SERVICES_JSON_LOOSE_TYPE) { |
|
693 | $obj[$key] = $val; |
|
694 | } else { |
|
695 | $obj->$key = $val; |
|
696 | } |
|
697 | } |
|
698 | } |
|
699 | } elseif ((($chrs{$c} == '"') || ($chrs{$c} == "'")) && ($top['what'] != SERVICES_JSON_IN_STR)) { |