src/Peekmo/JsonPath/JsonStore.php
function set($expr, $value)
    {
        $get = $this->get($expr);
        if ($res =& $get) {
            foreach ($res as &$r) {
                $r = $value;
            }

            return true;
        }

        return false;
    }
function set($expr, $value)
    {
        $get = $this->get($expr);
        if ($res =& $get) {
            foreach ($res as &$r) {
                $r = $value;
            }

            return true;
        }

        return false;
    }
function set ( $ expr , $ value ) { $ get = $ this -> get ( $ expr ) ; if ( $ res = & $ get ) { foreach ( $ res as & $ r ) { $ r = $ value ; } return true ; } return false ; }
Sets the value for all elements matching the given JsonPath expression
@param string $expr JsonPath expression
@param mixed $value Value to set
@return bool returns true if success
Sets the value for all elements matching the given JsonPath expression