-If the string is less than 80 characters, or if str_nl is set to '', then the escaped
-string will be contained on a single line.
+ JSONDump("This is a long string\n"
+ ."with plenty of embedded newlines\n"
+ ."and is greater than 80 characters.\n", {pretty => 1, str_nl => ""});
+
+ Would print
+
+ "This is a long string\nwith plenty of embedded newlines\nand is greater than 80 characters.\n"
+
+If the string is less than 80 characters, or if str_nl is set to "", then the escaped
+string will be contained on a single line. Setting pretty to 0 effectively sets str_nl equal to "".