Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5414

Windows files break the JSON parser

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Converter
    • Labels:
      None

      Description

      The parser outputs this error when attempting to parse a file with Windows newlines:

      java.lang.IllegalArgumentException: Malformatted JSON key-value pair: [DATA-DELETED]
      	at org.apache.felix.serializer.impl.json.JsonParser.parseKeyValue(JsonParser.java:96)
      	at org.apache.felix.serializer.impl.json.JsonParser.parseObject(JsonParser.java:142)
      	at org.apache.felix.serializer.impl.json.JsonParser.<init>(JsonParser.java:79)
      	at org.apache.felix.serializer.impl.json.JsonDeserializingImpl.from(JsonDeserializingImpl.java:68)
      	at org.apache.felix.serializer.impl.json.JsonDeserializingImpl.from(JsonDeserializingImpl.java:89)
      	at org.apache.felix.serializer.impl.json.JsonDeserializingImpl.from(JsonDeserializingImpl.java:81)
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dleangen David Leangen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: