Skip to content

Commit

Permalink
parse legacy root braces
Browse files Browse the repository at this point in the history
  • Loading branch information
trobro committed Oct 14, 2023
1 parent 136f7bd commit 1c5ccae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/test/org/hjson/test/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ private static boolean test(String name, String file, boolean inputCr, boolean o
String text=load(file, inputCr);

try {
HjsonOptions opt=new HjsonOptions();
opt.setParseLegacyRoot(false);

JsonValue data=JsonValue.readHjson(text, opt);
JsonValue data=JsonValue.readHjson(text);
String data1=data.toString(Stringify.FORMATTED);
String hjson1=data.toString(Stringify.HJSON);
if (!shouldFail) {
Expand Down

0 comments on commit 1c5ccae

Please sign in to comment.