I receive the following JSON string from an API function.
\"Inbound\": {
\"callRelatedFields\": [\"ANI\",
\"DNIS\"],
\"objects\": {
\"Con
The parseJson returns data in object form and object doesn't has index. So we should define custom index of data array, if we want to keep the array index.
Example:
$arr[0] = array(
'Contact'=>array(
'key1'=>'val',
)
);
$arr[1] = array(
'Account'=>array(
'key1'=>'val',
)
);
It will produce the output as per the array index originally defined before parseJson function call.