monkeypaw201 Posted October 21, 2012 Share Posted October 21, 2012 Hello, I am familiar with json and its php counterpart of json_encode and json_decode, however I've recently come across a similar-looking format that doesn't decode with json_decode. I need some help identifying what it is and how to decode it. Any assistance is appreciated! A snippet: a:1:{s:6:"points";a:40:{i:0;a:10:{s:4:"name";s:6:"point0";s:4:"time";s:7:"[19:09]";s:3:"lat";s:16:"44,5283077105488";s:3:"lng";s:16:"11,2966538706291";s:3:"alt";s:1:"0";s:4:"head";s:3:"208";s:2:"gs";s:1:"0";s:5:"phase";s:0:"";s:7:"warning";s:1:"0";s:13:"warningdetail";s:0:"";}i:1;a:10:{s:4:"name";s:6:"point1";s:4:"time";s:7:"[20:40]";s:3:"lat";s:16:"47,4327598955431";s:3:"lng";s:16:"19,2589757429879";s:3:"alt";s:1:"0";s:4:"head";s:3:"129";s:2:"gs";s:1:"0";s:5:"phase";s:7:"Arrived";s:7:"warning";s:1:"0";s:13:"warningdetail";s:0:"";}}} Link to comment https://forums.phpfreaks.com/topic/269749-assistance-identifying-format-not-json/ Share on other sites More sharing options...
Pikachu2000 Posted October 21, 2012 Share Posted October 21, 2012 Have you tried unserialize? Link to comment https://forums.phpfreaks.com/topic/269749-assistance-identifying-format-not-json/#findComment-1386832 Share on other sites More sharing options...
monkeypaw201 Posted October 22, 2012 Author Share Posted October 22, 2012 Brilliant! That was it. Thanks! Link to comment https://forums.phpfreaks.com/topic/269749-assistance-identifying-format-not-json/#findComment-1386835 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.