CONVERTING XML TO JSON WITH CONFIGURABLE OUTPUT
First Claim
1. A device comprising:
- one or more processors to;
receive information that identifies an input key, an output key, and an extensible markup language (XML) data structure,the input key including information that identifies an element in the XML data structure,the output key including information that identifies a manner in which the element is to be identified in a JavaScript object notation (JSON) data structure;
parse the XML data structure to determine the element identified by the input key;
generate the JSON data structure by storing an association between the element and the output key in the JSON data structure;
populate the JSON data structure with content from the XML data structure,the content being identified by the input key and being placed in a location in the JSON data structure identified by the output key; and
store the JSON data structure.
1 Assignment
0 Petitions
Accused Products
Abstract
A device is configured to receive information that identifies an XML data structure, an input key including information that identifies an element in the XML data structure, and an output key including information that identifies a manner in which the element is to be identified in a JSON data structure. The device is configured to parse the XML data structure to determine an element identified by the input key, and generate the JSON data structure by storing an association between the element and the output key in the JSON data structure. The device is configured to populate the JSON data structure with content from the XML data structure, where the content is identified by the input key and is placed in a location in the JSON data structure identified by the output key. The device is configured to store the JSON data structure.
32 Citations
20 Claims
-
1. A device comprising:
one or more processors to; receive information that identifies an input key, an output key, and an extensible markup language (XML) data structure, the input key including information that identifies an element in the XML data structure, the output key including information that identifies a manner in which the element is to be identified in a JavaScript object notation (JSON) data structure; parse the XML data structure to determine the element identified by the input key; generate the JSON data structure by storing an association between the element and the output key in the JSON data structure; populate the JSON data structure with content from the XML data structure, the content being identified by the input key and being placed in a location in the JSON data structure identified by the output key; and store the JSON data structure. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
8. A computer-readable medium storing instructions, the instructions comprising:
one or more instructions that, when executed by one or more processors, cause the one or more processors to; receive information that identifies an input key, an output key, and an extensible markup language (XML) data structure, the input key including information that identifies an element in the XML data structure, the output key including information that identifies a manner in which the element is to be identified in a JavaScript object notation (JSON) data structure; parse the XML data structure to determine content identified by the input key; populate the JSON data structure, in a location identified by the output key, with the content; and store the JSON data structure. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
15. A method, comprising:
-
receiving, by a device, information that identifies an input key, an output key, and an extensible markup language (XML) data structure, the input key including information that identifies an element in the XML data structure, the output key including information that identifies a manner in which the element is to be identified in a JavaScript object notation (JSON) data structure; parsing, by the device, the XML data structure to determine the element identified by the input key; creating, by the device, the JSON data structure, including hierarchical elements created based on the input key and the output key; populating, by the device, the JSON data structure with content from the XML data structure, the content being identified by the input key and being placed in a location in the JSON data structure identified by the output key; and storing, by the device, the JSON data structure. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification