src/FlexiPeeHP/FlexiBeeRO.php
public function rawJsonToArray($rawJson)
    {
        $responseDecoded = json_decode($rawJson, true, 10);
        $decodeError     = json_last_error_msg();
        if ($decodeError == 'No error') {
            if (array_key_exists($this->nameSpace, $responseDecoded)) {
                $responseDecoded = $responseDecoded[$this->nameSpace];
            }
        } else {
            $this->addStatusMessage('JSON Decoder: '.$decodeError, 'error');
            $this->addStatusMessage($rawJson, 'debug');
        }
        return $responseDecoded;
    }
public function rawJsonToArray($rawJson)
    {
        $responseDecoded = json_decode($rawJson, true, 10);
        $decodeError     = json_last_error_msg();
        if ($decodeError == 'No error') {
            if (array_key_exists($this->nameSpace, $responseDecoded)) {
                $responseDecoded = $responseDecoded[$this->nameSpace];
            }
        } else {
            $this->addStatusMessage('JSON Decoder: '.$decodeError, 'error');
            $this->addStatusMessage($rawJson, 'debug');
        }
        return $responseDecoded;
    }
public function rawJsonToArray ( $ rawJson ) { $ responseDecoded = json_decode ( $ rawJson , true , 10 ) ; $ decodeError = json_last_error_msg ( ) ; if ( $ decodeError == 'No error' ) { if ( array_key_exists ( $ this -> nameSpace , $ responseDecoded ) ) { $ responseDecoded = $ responseDecoded [ $ this -> nameSpace ] ; } } else { $ this -> addStatusMessage ( 'JSON Decoder: ' . $ decodeError , 'error' ) ; $ this -> addStatusMessage ( $ rawJson , 'debug' ) ; } return $ responseDecoded ; }
Convert FlexiBee Response JSON to Array

@param string $rawJson

@return array
Convert FlexiBee Response JSON to Array