xaya / libxayagame

MIT License
21 stars 19 forks source link

Allow duplicate JSON keys when parsing from ZMQ #89

Closed domob1812 closed 5 years ago

domob1812 commented 5 years ago

When we receive ZMQ notifications, allow duplicate JSON keys while parsing the text into JSON. Those may be passed on from Xaya Core, which allows them as well due to univalue.

JsonCpp will then just overwrite earlier values, so the last entry for a given key will prevail. This adds explicit tests as well, to make sure this situation works as desired and actually has this behaviour also in the future.