Skip to content

improve "A JSONObject text must begin with '{' at character 1 of" error message #46

Description

@ralfhauser

at org.codehaus.jettison.json.JSONTokener.syntaxError(JSONTokener.java:463)
at org.codehaus.jettison.json.JSONObject.(JSONObject.java:206)
at org.codehaus.jettison.json.JSONObject.(JSONObject.java:313)

and then it cites the JSON where "{" is in the first position ?!?!

==> it turns out the by moving the json file from Windows to the invisble "\uFEFF" is prefixed (byte order mark (BOM))

==> please visualize that too !

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions