Chromium Code Reviews
DescriptionUpdate type signature of JSON codec.
The encode function should definitely return a String.
The decode function returns an object of one of a known set of types.
We can't specify that, but we can use dynamic instead of Object.
This allows a user to write: JSON.decode('{"x":42}')["x"] without
warnings.
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=29661
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||