I tried to add the simple json below to my array in my API
$result = array();
...
$arr = array('a' => 1, 'b' => 2, 'c' => 3, 'd' => 4, 'e' => 5);
$json = json_encode($arr);
$result['json'] = $json;
return $result;
But after add it to my array, it loose the format like this.
Please look at the red arrow point to and compare with screenshot 2.
What I want is my json should display like
How can I prevent it. Any help or suggestion would be great appreciated