public function getJsonObjects($jsonPath)
    {
        $this->hasDiverged = false;
        $result = $this->getReal($this->jsonObject, $jsonPath);
        if ($result !== false) {
            $objs = array();
            foreach($result as &$value) {
                $jsonObject = new JsonObject(null, $this->smartGet);
                $jsonObject->jsonObject = &$value;
                $objs[] = $jsonObject;
            }
            if ($this->smartGet && !$this->hasDiverged) {
                return $objs[0];
            }
            return $objs;
        }
        return $result;
    }
public function getJsonObjects($jsonPath)
    {
        $this->hasDiverged = false;
        $result = $this->getReal($this->jsonObject, $jsonPath);
        if ($result !== false) {
            $objs = array();
            foreach($result as &$value) {
                $jsonObject = new JsonObject(null, $this->smartGet);
                $jsonObject->jsonObject = &$value;
                $objs[] = $jsonObject;
            }
            if ($this->smartGet && !$this->hasDiverged) {
                return $objs[0];
            }
            return $objs;
        }
        return $result;
    }
public function getJsonObjects ( $ jsonPath ) { $ this -> hasDiverged = false ; $ result = $ this -> getReal ( $ this -> jsonObject , $ jsonPath ) ; if ( $ result !== false ) { $ objs = array ( ) ; foreach ( $ result as & $ value ) { $ jsonObject = new JsonObject ( null , $ this -> smartGet ) ; $ jsonObject -> jsonObject = & $ value ; $ objs [ ] = $ jsonObject ; } if ( $ this -> smartGet && ! $ this -> hasDiverged ) { return $ objs [ 0 ] ; } return $ objs ; } return $ result ; }
Return an array of new JsonObjects representing the results of the
given JsonPath. These objects contain references to the elements in the
original JsonObject.

This is affected by smartGet the same way JsonObject::get is affected
This can cause JsonObject to have actual values (not object/array) as root.

This is useful when you want to work with a subelement of the root
object and you want to edit (add, set, remove) values in that subelement
and that these changes also affect the root object.

@param string $jsonPath jsonPath

@return mixed
Return an array of new JsonObjects representing the results of the given JsonPath . These objects contain references to the elements in the original JsonObject .