主权项 |
1. A method of encoding an Efficient XML Interchange (EXI) document to represent a JavaScript Object Notation (JSON) document without use of a binary-type JSON representation solution, the method comprising:
fetching a set of tokens associated with a JSON document; determining one or more terminal types associated with the set of tokens; determining one or more current names and one or more current distances associated with the set of tokens based in part on the terminal type of the tokens in the set; and encoding, by a processor-based computing device programmed to perform the encoding, an EXI document representing the JSON document based on the one or more current names and the one or more current distances for the set of tokens associated with the JSON document. |