Add a universal _jsonDecode method to handle the JSON decode logic. Right now it just uses a default utf8.decode decoder for everything, but in order to be robust we should probably add some charset checking logic in case there is an alternate charset defined from the server response. Adding this global function makes it easy to define this logic in one place.
Add a universal
_jsonDecode
method to handle the JSON decode logic. Right now it just uses a defaultutf8.decode
decoder for everything, but in order to be robust we should probably add somecharset
checking logic in case there is an alternatecharset
defined from the server response. Adding this global function makes it easy to define this logic in one place.