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.