Skip to main content
edited title
Link
Matt
  • 9.5k
  • 12
  • 69
  • 87

can a Can JSON start with ["["?

From what I can read on json.orgjson.org, all JSONJSON strings should start with { (curly brace), and the [ characters (square bracketbrackets) represent an array element in JSON.

I use the json4j library, and an input what I got startan input that starts with [, so I'm thinkingI didn't think this isn't awas valid jsonJSON. I looked briefly at the jsonJSON schema, but I couldn't really foundfind it stated that jsona JSON file cannot start with [, or startsthat it can only start with {.

From what I can read on json.org, all JSON strings should start with { (curly brace), and the [ (square bracket) represent an array element in JSON.

I use the json4j library, and an input what I got start with [ so I'm thinking this isn't a valid json. I looked briefly at the json schema but couldn't really found stated that json cannot start with [ or starts only with {.

From what I can read on json.org, all JSON strings should start with { (curly brace), and [ characters (square brackets) represent an array element in JSON.

I use the json4j library, and I got an input that starts with [, so I didn't think this was valid JSON. I looked briefly at the JSON schema, but I couldn't really find it stated that a JSON file cannot start with [, or that it can only start with {.

code formatting; retagged
Source Link
newfurniturey
  • 38.6k
  • 10
  • 99
  • 104

can a JSON start with [  ?

fromFrom what I can read on json.org, all JSONSJSON strings should start with {{ (curly brace), and the [[ (square bracket) represent an array element in JSON.

I use the json4jjson4j library, and an input what I got start with [[ so I'm thinking this isn't a valid json. I looked briefly at the json schema but couldn't really found stated that json cannot start with [[ or starts only with { {.

Thanks

can a JSON start with [  ?

from what I can read on json.org, all JSONS should start with { (curly brace), and the [ (square bracket) represent an array element in JSON.

I use the json4j library, and an input what I got start with [ so I'm thinking this isn't a valid json. I looked briefly at the json schema but couldn't really found stated that json cannot start with [ or starts only with { .

Thanks

can a JSON start with [?

From what I can read on json.org, all JSON strings should start with { (curly brace), and the [ (square bracket) represent an array element in JSON.

I use the json4j library, and an input what I got start with [ so I'm thinking this isn't a valid json. I looked briefly at the json schema but couldn't really found stated that json cannot start with [ or starts only with {.

added 1 characters in body
Source Link
Tiberiu
  • 3.1k
  • 3
  • 21
  • 17
Loading
Source Link
Tiberiu
  • 3.1k
  • 3
  • 21
  • 17
Loading