I am usin开发者_JAVA技巧g curl to get the data from API, It works well with some but for some function the json_decode function not returning the data. Not sure what exactly cause the problem here, as if I directly check the API it has the data but not getting through json_decode function.
Copy your API response JSON into JSONLint. If it's not valid, you have a problem.
Is the return data well-formed? You can try parsing the return data using JSON Lint first.
精彩评论