I have json
like this :
{"status":"TRUE","flag":1,"message":"Has Data","data":[{"country_id":"1","country_name":"India"}]}
This is the return value I am getting from api. I need to convert this into array and I need the values country_id and country_name.
I tried to convert using but unable to parse it as array
json_decode();
but still I am getting in std object format. Someone help me. Thanks in advance.
In model I am returning the values in
return $Result->result_array()