public function get($key)
    {
        $this->assertOpened();
        $key = (string) $key;
        if (isset($this->contents[$key])) {
            return $this->contents[$key];
        }
        return null;
    }
public function get($key)
    {
        $this->assertOpened();
        $key = (string) $key;
        if (isset($this->contents[$key])) {
            return $this->contents[$key];
        }
        return null;
    }
public function get ( $ key ) { $ this -> assertOpened ( ) ; $ key = ( string ) $ key ; if ( isset ( $ this -> contents [ $ key ] ) ) { return $ this -> contents [ $ key ] ; } return null ; }
Returns a record that originates from the opened json file.

If the key doesn't exist, then null will be returned.

@param string $key The key of the record.
@return mixed
Returns a record that originates from the opened json file .