I have a JSON string where neither the keys nor the values are quoted and I would like to transform it to a correctly formatted JSON.
{basic:{0:{index:0, lice
You can use JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES with Jackson to allow unquoted field names:
JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES
JsonFactory factory = new JsonFactory(); factory.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true); JsonParser jp = factory.createJsonParser(new FileInputStream("content.json"));