K
K
kserg9032019-11-19 11:37:51
JSON
kserg903, 2019-11-19 11:37:51

Why is JSON not valid?

Can you please tell me why the following JSON is not valid?

{
  "input": {
    "qwe": "1",
    "asd": "1",
  }
}

Checked with a validator

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-11-19
@kserg903

the last comma is extra

N
Nujabes37, 2019-11-19
@Nujabes37

{
  "input": {
    "qwe": "1",
    "asd": "1"
  }
}

Remove the comma at the end.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question