Generating xml schema from json data
AssigneeInternational Business Machines Corporation
InventorsShudi Gao, Jeff J. Li, James P. Schmeiser
Life of this patent
Estimating the term…
Abstract
A computer receives a first JSON data that includes at least one JSON array or JSON object value. The computer parses a stream of JSON data, wherein the stream of JSON data includes at least a part of the first JSON data. The computer determines the logical structure of the first JSON data using the parsed stream of JSON data. The computer generates an XML schema based on the logical structure of the first JSON data.
Claims20
A method for generating XML schema from JSON data, the method comprising:
- A computer receiving a first JSON data, wherein the first JSON data includes at least one JSON array or JSON object value;
- the computer parsing a stream of JSON data, wherein the stream of JSON data includes at least a part of the first JSON data;
- the computer determining the logical structure of the first JSON data using the parsed stream of JSON data;
- the computer generating an XML schema based on the logical structure of the first JSON data.
A computer program product for generating XML schema from JSON data, the computer program product comprising:
- one or more computer-readable storage media and program instructions stored on the one or more computer-readable storage media, the program instructions comprising:
- program instructions to receive a first JSON data, wherein the first JSON data includes at least one JSON array or JSON object value;
- program instructions to parse a stream of JSON data, wherein the stream of JSON data includes at least a part of the first JSON data;
- program instructions to understand the logical structure of the first JSON data using the parsed stream of JSON data;
- program instructions to generate an XML schema based on the logical structure of the first JSON data.
A computer system for generating XML schema from JSON data, the computer system comprising:
- one or more computer processors;
- one or more computer-readable storage media;
- program instructions stored on the computer-readable storage media for execution by at least one of the one or more processors, the program instructions comprising:
- program instructions to receive a first JSON data, wherein the first JSON data includes at least one JSON array or JSON object value;
- program instructions to parse a stream of JSON data, wherein the stream of JSON data includes at least a part of the first JSON data;
- program instructions to understand the logical structure of the first JSON data using the parsed stream of JSON data;
- program instructions to generate an XML schema based on the logical structure of the first JSON data.
Dependencies are inferred from the claim text.