You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the names within an object are not unique, the behavior of software that receives such an object is unpredictable. Many implementations report the last name/value pair only. Other implementations report an error or fail to parse the object, and some implementations report all of the name/value pairs, including duplicates.
The text was updated successfully, but these errors were encountered:
json4s version
4.1.0-M2
scala version
2.13.11
jdk version
openjdk version "11.0.18" 2023-01-17
scenario
output
{"book":{"title":"Some title","description":"some description","author":{"id":"1","name":"some author name"},"review":"nice book","review":"this book sucks","review":"amazing work"}}
expected output
{"book":{"title":"Some title","description":"some description","author":{"id":"1","name":"some author name"},"review": ["nice book", "this book sucks", "amazing work"]}}
reason
RFC 7159 says:
When the names within an object are not unique, the behavior of software that receives such an object is unpredictable. Many implementations report the last name/value pair only. Other implementations report an error or fail to parse the object, and some implementations report all of the name/value pairs, including duplicates.
The text was updated successfully, but these errors were encountered: