0

Trying to get property of non-object in

Im using json decode.

8th Apr 2019, 9:22 AM
Ahmed Siddiqui
Ahmed Siddiqui - avatar
3 Antworten
+ 1
$jsonData = file_get_contents('json-path'); $data = json_decode($jsonData); Now whatever you had in your json is stored inside the data variable.
8th Apr 2019, 11:55 AM
Victor Andersson
Victor Andersson - avatar
0
Mr. Victor. Thanks for answering this question. I tried to learn json decoding through CURL PHP. I am getting confused in json to object conversion or parsing data through the object. That's why I am getting this error. please have a look at this reference. https://www.sololearn.com/Discuss/1771065/trying-to-get-property-of-non-object
23rd Apr 2019, 11:48 AM
Ahmed Siddiqui
Ahmed Siddiqui - avatar
0
I’ll provide an answer in your referenced post.
23rd Apr 2019, 7:44 PM
Victor Andersson
Victor Andersson - avatar