source may be a String, or raw bytes (List<int>) e.g. straight off
an HTTP response — passing bytes directly is what lets malformed-UTF-8
string fields fall back to a raw List<int> instead of throwing.
Decodes JSON directly from raw bytes (List<int>) — no String
conversion involved, so this is the direct binary-in counterpart to
jsonEncodeBytes. This is exactly what jsonDecode does internally
when given a List<int>; use this version when you always have bytes
and want a signature that says so. See jsonDecode for reviver and
options.
options is fully optional: leave it null (the default) for
behavior identical to dart:convert's jsonEncode - pass one to opt
into the BigInt/JsonBinary features (see the library doc above).
Encodes directly to raw bytes — no
intermediate String involved. This is the direct binary-out
counterpart to jsonDecodeBytes/jsonDecode. See jsonEncode for
options and indent.