I have a created a webService, whose output string (in JSON) is given below :
"[{\"CALC_ALTITUDE\":213,\u000a\"ZA_MAINS_SUPPLY\":\"3~ 400V 50Hz\"}]"
When i set this string in a TextBox, the output comes like this :
[{
"CALC_ALTITUDE":213,
"ZA_MAINS_SUPPLY":"3~ 400V 50Hz"
}]
And this is a proper JSON text.
But, when i access this using REST Console, the output appears like :
"[{\"CALC_ALTITUDE\":213,\u000a\"ZA_MAINS_SUPPLY\":\"3~ 400V 50Hz\"}]"
My problem is that, TextBox is interpreting this text very well, by reading newline characters and escape sequence \". But, REST Console is not able to do so.
Any idea how to show this text in the same way as this
[{
"CALC_ALTITUDE":213,
"ZA_MAINS_SUPPLY":"3~ 400V 50Hz"
}]
in REST console as well ??
Thanks