Closed cgarciae closed 9 years ago
Actually, encodeJson
and decodeJson
are newer than decode
and encode
, and they aren't replacements, but auxiliary functions
encode
and decode
produces and consumes Map
objectsencodeJson
and decodeJson
produces and consumes String
objects. They are useful if you don't want to invoke the JSON codec from dart:convert
, to translate between JSON strings and Map objects.Ohh, great to hear. I was surprise by the change tho. Thanks!
I've recently checked the documentation and notice that the new functions
encode
anddecode
are being promoted as a replace forencodeJson
anddecodeJson
.decode
encodeJson
anddecodeJson
? If not, it would be better to deprecate methods and create new ones instead of refactoring as to give people a chance to migrate without braking their code.