Added json comments

This commit is contained in:
Anuken
2019-11-08 14:40:15 -05:00
parent effd4e959a
commit e9f9194f73
2 changed files with 3 additions and 1 deletions

View File

@@ -341,6 +341,7 @@ public class ContentParser{
if(contentTypes.isEmpty()){
init();
}
json = json.replaceAll("#.*?\n","\n");
JsonValue value = parser.fromJson(null, json);
if(!parsers.containsKey(type)){