Example #1
0
 /**
  * Checks if the given JSON string is correct and produces the given output with unescaping
  * deactivated.
  *
  * @param json JSON string
  * @param exp expected output
  * @throws QueryIOException parse error
  */
 private static void unescape(final String json, final String exp) throws QueryIOException {
   assertEquals(exp, JsonStringConverter.toString(json, false, false));
 }
Example #2
0
 /**
  * Checks if the given JSON string is correct and produces the given output.
  *
  * @param json JSON string
  * @param exp expected output
  * @param liberal liberal parsing
  * @throws QueryIOException parse error
  */
 private static void parse(final String json, final String exp, final boolean liberal)
     throws QueryIOException {
   assertEquals(exp, JsonStringConverter.toString(json, liberal, true));
 }