Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
4
  • Use json_decode() - But make sure the JSON string is valid, else it'd return NULL. The JSON string you have in the question is not valid (as you can verify with an online validator such as jsonlint.com) Commented Feb 18, 2014 at 11:48
  • If I just search then the appropriate PHP documentation is the first hit. Commented Feb 18, 2014 at 11:49
  • sorry I checked with jsonlint.com for my json and it says valid [ { "datetime": "17/02/2014 13:18:30", "type": "testtype", "locationid": "1", "GPSType": "GOOGLE", "GPSLatitude": "1.1", "GPSLongtitude": "1.2", "userid": "admin", "brand": "1234567", "numbers": [ "num1", "num2", "num3" ] } ] Commented Feb 18, 2014 at 11:51
  • 1
    @user3323251 — There is a " in that comment that isn't in the question. Commented Feb 18, 2014 at 11:52

lang-php

AltStyle によって変換されたページ (->オリジナル) /