I am thinking of a best solution to replace all the whitespaces in JSON keys with underscore.
{ \"Format\": \"JSON\", \"TestData\": { \"Key with
Remove only the white space on the strings in jason code not all white space on jason code
public String removeWhiwspaceInJasonString(String jsonStr) { boolean changeActive = false; String output = ''; for(int i=0; i