SQLite Forum

Unexpected behaviour of the json_valid function and .json mode in CLI
Login
> Testcase 6 however is an integer, it should not be considered valid JSON.


Technically correct, but try this in your browser dev tools:

```
JSON.parse(1)
1
JSON.parse("42")
42
```

If it's good enough for Firefox and Chrome, it's very probably good enough for sqlite :).