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
Using the heuristics in RFC4627 allows us to parse all JSON that is valid under RFC8259, since it detects and parses UTF-8 JSON, so I don't think this is a bug.
Note that the actual decoding is done automatically by Jackson right now, so changing the code to support only UTF-8 would probably be more complicated. We could improve the comment to clarify that this method of parsing supports encodings that would not be valid under RFC8259.
If we were to implement a new parser in a future version of play-json, RFC8259 provides a solid reason to simplify things by only supporting UTF-8, but I don't see any value in breaking existing behavior.
play-json/play-json/shared/src/main/scala/play/api/libs/json/Json.scala
Line 35 in 3c9825b
https://tools.ietf.org/html/rfc8259
The text was updated successfully, but these errors were encountered: