monkeypaw201 Posted February 5, 2013 Share Posted February 5, 2013 Hello, I am familiar with json and its php counterpart of json_encode and json_decode, similarly serialize and unserialize, however I've recently come across a similar-looking format that doesn't decode with json_decode or unserialize. I need some help identifying what it is and how to decode it. Any assistance is appreciated! ["2110761","KZDV","ASDI",1360033414] Quote Link to comment https://forums.phpfreaks.com/topic/274042-content-format/ Share on other sites More sharing options...
requinix Posted February 5, 2013 Share Posted February 5, 2013 That's JSON. Specifically it's an array. Quote Link to comment https://forums.phpfreaks.com/topic/274042-content-format/#findComment-1410158 Share on other sites More sharing options...
silkfire Posted February 5, 2013 Share Posted February 5, 2013 Decodes perfectly with PHP, are you sure you did it the right way? Quote Link to comment https://forums.phpfreaks.com/topic/274042-content-format/#findComment-1410298 Share on other sites More sharing options...
monkeypaw201 Posted February 6, 2013 Author Share Posted February 6, 2013 So it turns out that for some reason it only works when I run it twice (like below). I have no clue why, but I got it to work. json_decode(json_decode(["2110761","KZDV","ASDI",1360033414])) Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/274042-content-format/#findComment-1410565 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.