diff options
| author | 2021-01-31 17:35:30 +0100 | |
|---|---|---|
| committer | 2021-01-31 17:35:30 +0100 | |
| commit | 01ad92b2d3c4a3679f86ac8889736fa873e00ae4 (patch) | |
| tree | 809a328122046fe82133337448c77e1fa474f529 | |
| parent | Make sure that restrictions also applies to moderators (diff) | |
Re created file from last point
| -rw-r--r-- | bot/resources/tags/empty-json.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/bot/resources/tags/empty-json.md b/bot/resources/tags/empty-json.md new file mode 100644 index 000000000..a54d3d71a --- /dev/null +++ b/bot/resources/tags/empty-json.md @@ -0,0 +1,27 @@ +When creating a new JSON file you might run into the following error. + +`JSONDecodeError: Expecting value: line 1 column 1 (char 0)` + +In short this error means your JSON is invalid in it's current state. +A JSON may never be completely empty and must always at least have one of the following items. + +``` +object +array +string +number +"true" +"false" +"null" +``` + +To resolve this issue, you create one of the above values in your JSON. It is very common to use `{}` to make an object. Adding the following to your JSON should resolve this issue. + +```json +{ + + +} +``` + +Make sure to put all your data between the `{}`, just like you would when making a dictionary.
\ No newline at end of file |