System and method for generating a JSON schema from a JSON stream
Abstract
In accordance with an embodiment, described herein is a JSON schema generator that parses a JSON stream, determines a data type of each record of the JSON stream, and selects a corresponding record schema generation logic component based on the determined data type to build a record schema for that record. In building a record schema, each element in a record and each sub-element in one or more nested layers of the record can be examined, to determine their data types. A corresponding parser can be selected for each element and sub-element based on a determined data type to generate a schema node. The generated schema nodes can be joined together to create a record schema for the record. Each record schema can be dynamically merged together to create a schema for the JSON stream.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A system for automatically generating a JSON schema from a JSON stream, including a computer including one or more microprocessors; a software application executing on the computer, wherein the software application includes a plurality of data type parsers, a factory class, a plurality of record schema generation logic components, and a record schema concatenator; wherein when receiving a JSON stream, the software application operates to determine a data type of each record in the JSON stream, determine a data type of each element of a plurality of elements in the record, use the factory class
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (19)
Non-Patent Literature (5)
- Bartolomeo, Giovanni, et al., "Design and Development Tools for Next Generation Mobile Services", ICSEA 2007, Cap Esterel, France, Aug. 25-31, 2007, IEEE Xplore, 6 pages.
- Davison, Quick, and a bit dirty, JSON Schema Generation with MOXy 2.5.1, Apr. 18, 2014, 6 pages. Retrieved from http://ww.jsonschema.net/index.html#.
- Droettboom, et al., Understanding JSON Schema, Release 1.0, Jul. 28, 2014, 54 pages Retrieved from http://spacetelescope.github.io/understanding-json-schema/UnderstandingJSONSchema.pdf.
- Hilaiel, Orderly JSON, 2 pages. Retrieved from: http://orderly-json.org/, Aug. 7, 2015.
- Izquierdo, Javier Luis Canovas, et al., "Discovering Implicit Schemas in JSON Data", ICWE 2013, LNCS 7977, Springer-Verlag, Berlin, Germany, © 2013, pp. 68-83.