[MDEV-21346] JSON_VALID( '{"a":"b","a":"c"}' ) returns 1 Created: 2019-12-18 Updated: 2019-12-18 Resolved: 2019-12-18 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | JSON |
| Affects Version/s: | 10.2.21 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Moshe Dolev | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | JSON_VALID | ||
| Description |
|
In the tested version (10.2.21), function json_valid does not check for duplicate key, and returns 1 on the invalid input { "a":"b", "a":"c" } |
| Comments |
| Comment by Sergei Golubchik [ 2019-12-18 ] |
|
At the moment that linked stackoverflow question has 12 answers that mention different documents, implementations, and standards. And, if I'm not mistaken, all 12 conclude that {"a":"b","a":"c"} is a valid JSON. |