Trying to get property of non-object Trying to get property of non-object json json

Trying to get property of non-object


It looks like you've encoded the object twice (the backslashes make me think that). So, decoding the object twice may fix this:

$final = json_decode(json_decode( $request ));

Or, don't encode twice in the first place. You could also strip the slashes and then decode.