Add tryDecode and tryEncode to json
#49138
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
library-convert
type-enhancement
A request for a change that isn't a bug
json.decode
will throw error when input is empty string.Uncaught Error: FormatException: SyntaxError: Unexpected end of JSON input
here is the sample :
it would be nice to add
json.tryDecode
andjson.tryEncode
since json data can be from external source such as api or shared pref (in flutter).The text was updated successfully, but these errors were encountered: