HPCC-20736 JSON Test request and response contain extra new lines Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com> Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
@@ -170,6 +170,12 @@
}
break;
+ case '\n':
+ break;
+ case ' ':
+ if (i > 0 && jsonstring.charAt(i-1) == ':')
+ pretty += ch;
default:
pretty += ch;