spand
09/17/2018, 12:34 PMGsonSerializer.read
casts deserialized json to Any
? And not Any?
?spand
09/17/2018, 12:35 PMnull
but most support it regardlessspand
09/17/2018, 12:35 PMbdawg.io
09/17/2018, 5:46 PMnull
valid JSON?? It's valid in RFC 8259 (Dec. 2017) and RFC 7159 (Mar. 2014)bdawg.io
09/17/2018, 5:53 PMA JSON text is a sequence of tokens. The set of tokens includes six structural characters, strings, numbers, and three literal names.
A JSON text is a serialized value. Note that certain previous specifications of JSON constrained a JSON text to be an object or an array.
...
A JSON value MUST be an object, array, number, or string, or one of the following three literal names:
false null trueSee sections 2 and 3 https://tools.ietf.org/html/rfc8259#section-2
spand
09/18/2018, 6:52 AMNote that certain previous specifications of JSON constrained a JSON text to be an object or an
array.
A bug it is then !