[ad_1]
I am converting response string to JSON Element using below code but in PROD I see MalformedJsonException but with same code base no issue is seen in UAT or DEV.
How can I resolve this issue in PROD env or how to find what went wrong in PROD.
I verified response string with UAT and PROD no difference. Verified JSON response check if an extra ‘}’ using JSON lint it show json is valid.
How can I fix it.
Below code I am using to convert to JSON Element.
public jsonElement parsejsonContentFromStream (Inputstream in){
BufferedReader bufferedReader = new BufferedReader (new InputStreamReader (in));
JsonParser parser = new JsonParser();
return parser.parse(bufferedReader);
}
Exception is at
return parser.parse(bufferedReader);
[ad_2]