Use the second parameter of json_decode
to make it return an array:
$result = json_decode($data, true);
More Related Contents:
- nested json using php and mysql
- how to use json_encode for my output?
- Extracting data from Json in Php
- I keep getting these kind of errors in terms of HttpUrlConnection and BackGroundTask in android
- How to convert the json image url string into Bitmap image to display images in android application
- Preferred method to store PHP arrays (json_encode vs serialize)
- Reference: Why are my “special” Unicode characters encoded weird using json_encode?
- Processing large JSON files in PHP
- Generate json string from multidimensional array data [duplicate]
- How to parse JSON and access results
- Get data from JSON file with PHP [duplicate]
- Sending JSON to PHP using ajax
- Why does the PHP json_encode function convert UTF-8 strings to hexadecimal entities?
- Parsing JSON with PHP
- How to retrieve Request Payload
- PHP decoding and encoding json with unicode characters
- jQuery ajax request with json response, how to?
- Google GCM server returns Unauthorized Error 401
- How to generate JSON data with PHP?
- How to solve JSON_ERROR_UTF8 error in php json_decode?
- How to access JSON decoded array in PHP
- How do I `json_encode()` keys from PHP array?
- Remove double quote in json_encode()
- What is the type this string? a:1:{s:2:”en”;}
- Using json_encode on objects in PHP (regardless of scope)
- How to loop through PHP object with dynamic keys [duplicate]
- Storing arrays in the database
- UTF-8 character encoding battles json_encode() [duplicate]
- PDOStatement to JSON [closed]
- PHP JSON encode output number as string