# US 2014/0207826 A1 · Generating xml schema from json data

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0207826 A1
- Document ID: US20140207826A1
- Status: Published application
- Kind: A1
- Application number: 13/746,007
- Filed: 2013-01-21
- Published: 2014-07-24
- Earliest claimed: 2013-01-21
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Shudi Gao; Jeff J. Li; James P. Schmeiser
- Web page: https://patentgrep.com/patent/US20140207826A1

## CPC

- G06F 16/211: {Schema design and management}
- G06F 16/83: Querying
- G06F 16/84: Mapping; Conversion
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method of claim 1, further including the step of:
the computer augmenting the generated XML schema using a second JSON data, wherein the second JSON data includes a JSON array or JSON object value.

### Claim 3 (depends on 2)

The method of claim 2, further including the steps of:
the computer parsing a third JSON data; and
the computer validating the third JSON data using the generated XML schema.

### Claim 4 (depends on 3)

The method of claim 3, wherein the computer uses one validating engine to parse and validate the third JSON data using the generated XML schema.

### Claim 5 (depends on 3)

The method of claim 3, further including the steps of:
the computer transforming the third JSON data; and
the computer mapping the third JSON data.

### Claim 6 (depends on 5)

The method of claim 5, wherein the computer uses one transforming engine to transform and map the third JSON data.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first JSON data is included, at least in part, in a JSON document.

### Claim 8

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.

### Claim 9 (depends on 8)

The computer program product of claim 8, further including the step of:
program instructions to augment the generated XML schema using a second JSON data, wherein the second JSON data includes a JSON array or object value.

### Claim 10 (depends on 9)

The computer program product of claim 9, further including the steps of:
program instructions to parse a third JSON data; and
program instructions to validate the third JSON data using the generated XML schema.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the computer uses one validating engine to parse and validate the third JSON data using the generated XML schema.

### Claim 12 (depends on 9)

The computer program product of claim 9, further including the steps of:
program instructions to transform the third JSON data; and
program instructions to map the third JSON data.

### Claim 13 (depends on 12)

The computer program product of claim 12, wherein the computer uses one transforming engine to transform and map the third JSON data.

### Claim 14 (depends on 9)

The computer program product of claim 9, wherein the first JSON data is included, at least in part, in a JSON document.

### Claim 15

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.

### Claim 16 (depends on 15)

The computer system of claim 15, further including the step of:
program instructions to augment the generated XML schema using a second JSON data, wherein the second JSON data includes a JSON array or object value.

### Claim 17 (depends on 16)

The computer system of claim 16, further including the steps of:
program instructions to parse a third JSON data; and
program instructions to validate the third JSON data using the generated XML schema.

### Claim 18 (depends on 17)

The computer system of claim 17, wherein the computer uses one validating engine to parse and validate the third JSON data using the generated XML schema.

### Claim 19 (depends on 16)

The computer system of claim 16, further including the steps of:
program instructions to transform the third JSON data; and
program instructions to map the third JSON data.

### Claim 20 (depends on 19)

The computer system of claim 19, wherein the computer uses one transforming engine to transform and map the third JSON data.
