to JSON
Encodes a String-keyed map back into a JSON string, with the NoneableDouble/NoneableLong adapters registered.
Since neither adapter implements its toJson side (see toJson), data must not contain a value that would route through one of them.
Return
the JSON-encoded map
Parameters
data
the map to encode
Throws
if the map cannot be encoded
if data is null