https://issues.dlang.org/show_bug.cgi?id=22612

Salih Dincer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Salih Dincer <[email protected]> ---
Probably, but the 2nd object with the same name is overwritten with the 1st. 
In summary, data points to a single object.

NodeJS has the same effect:

const jsonStr ='{"name":"Salih","age":42,"name":"SALIH"}';
const data = JSON.parse(jsonStr);

var assert = require('assert');
assert(data.name != "Salih");

--

Reply via email to