You need to sign in to do that
Don't have an account?
Ezra Soleymani
sorry, unable to parse a json: Unexpected character ('E' (code 69))
I am consuming a third party Rest Service. One of data fields is return following -1.E-02. When I pass the json data through the json deserializer. I am hit with the following error: System.JSONException: Unexpected character ('E' (code 69)) in numeric value: Decimal point not followed by a digit at [line:1, column:1509]
This uses a regular expression to try to find unquoted instances of scientific notation and wrap them in quotes. Then you can just parse the 'replacedText' variable since it should be valid JSON.