Bug #70839 JSON_VALID allows to have two elements with the same key

Submitted: 6 Nov 2013 18:24 Modified: 14 Nov 2013 0:57
Reporter: Sveta Smirnova Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: JSON User-defined function ( UDF ) Severity:S2 (Serious)
Version:0.2 OS:Any
Assigned to: Sveta Smirnova CPU Architecture:Any

[6 Nov 2013 18:24] Sveta Smirnova
Description:
JSON_VALID allows to have elements with the same key

How to repeat:
select json_valid('{"foo": "bar", "foo": "baz"}');
json_valid('{"foo": "bar", "foo": "baz"}')
1
[14 Nov 2013 0:54] Sveta Smirnova
Posted by developer:
 
Fixed in versions 0.2.1 and 0.3.0.

Additionally fixed related bug when result of call "select json_valid('{"foo": "bar", "bar": "baz"]');" was wrong.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.