Package org.symbol.sdk
Class JsonDescriptor
java.lang.Object
org.symbol.sdk.JsonDescriptor
- JsonDescriptor
- Parses a JSON document into the descriptor
Mapthe facadecreateTransactionFromDescriptormethods consume; integral numbers deserialize asInteger/Long/BigIntegerby magnitude — the descriptor coercions accept all three. Note that descriptor byte fields read strings as UTF-8, not the hex of the modeltoJson()projection.
-
Method Summary
-
Method Details
-
parse
- JsonDescriptor.parse
- Parses a JSON object into a descriptor map.
- Parameters:
json- JSON document whose top level is an object.- Returns:
- Descriptor map with
Stringkeys andString/Number/List/Mapvalues. - Throws:
InvalidDescriptorException- If the document is malformed or not a JSON object.
-