Suppose i have string result in json format as below.
{ "errorcode": 0, "message": "Done", "login": [ { "session_timeout": "1800", "token": "1370907977", "sessionid": "##F7A7E49F7FCFF35D3F821201CBF2F7CB5937E4AC99BF2AF74B508A1C8B3F", "username": "" } ] }
How can get a hash table from this like,
hash[errorcode] = 0;
hash[message] = Done;
PS: without using any additional modules and using simple string functions.