Class Json
java.lang.Object
com.codename1.crypto.encoding.Json
A small JSON reader and writer shared by the device and the server, for the JSON-RPC framing and EIP-712 documents the crypto packages exchange.
Objects read as LinkedHashMap<String, Object> in document order, arrays as
ArrayList<Object>, strings as String, true/false as Boolean, null as null,
and numbers as Long when integral and in range, UInt256 when integral, positive and
beyond a long, and Double otherwise -- a double would silently round a chain
quantity.
-
Method Summary
-
Method Details
-
parse
-
stringify
Writes a value as compact JSON. Accepts whatparse(String)produces plus anyNumber,byte[](written as a0xhex string),Object[]and anyMap/List.
-