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 a logical structure of the first JSON data using the parsed stream of JSON data; and the computer automatically generating an XML schema based on the logical structure of the first JSON data, wherein the XML schema is adapted to reflect one or more common elements identified in the first JSON data and one or both of an order of XML data and a format of XML that are required by a program such that the generated XML schema enables processing of the first JSON data by the program as if the first JSON data were written in XML.