JSON data validation
First Claim
Patent Images
1. A JavaScript Object Notation (JSON) data validation method, comprising:
- generating a description schema that describes valid JSON data using one or more JSON constructs, the description schema including a definition, wherein the definition includes an object definition, a string definition, or a number definition;
identifying the definition as an object definition;
obtaining a content model of the object definition;
processing a particle of the object definition based on the content model, wherein the particle includes a sequence definition, a choice definition, or a named definition;
converting the description schema to an Extensible Markup Language (XML) schema based on the processed particle;
obtaining candidate JSON data for validation;
converting the candidate JSON data to XML data; and
validating the candidate JSON data based on the XML data conforming to the XML schema.
1 Assignment
0 Petitions
Accused Products
Abstract
A JavaScript Object Notation (JSON) data validation method may include generating a description schema for defining JSON data using one or more JSON constructs. The method may further include converting the description schema to an Extensible Markup Language (XML) schema. The method may also include converting the JSON data to XML data, and validating the JSON data based on the XML Schema and the XML data.
20 Citations
20 Claims
-
1. A JavaScript Object Notation (JSON) data validation method, comprising:
-
generating a description schema that describes valid JSON data using one or more JSON constructs, the description schema including a definition, wherein the definition includes an object definition, a string definition, or a number definition; identifying the definition as an object definition; obtaining a content model of the object definition; processing a particle of the object definition based on the content model, wherein the particle includes a sequence definition, a choice definition, or a named definition; converting the description schema to an Extensible Markup Language (XML) schema based on the processed particle; obtaining candidate JSON data for validation; converting the candidate JSON data to XML data; and validating the candidate JSON data based on the XML data conforming to the XML schema. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A system, comprising:
-
one or more processors configured to; generate a description schema that describes valid JavaScript Object Notation (JSON) data using one or more JSON constructs, the description schema including a definition, wherein the definition includes an object definition, a string definition, or a number definition; identify the definition as an object definition; obtain a content model of the object definition; process a particle of the object definition based on the content model, wherein the particle includes a sequence definition, a choice definition, or a named definition; convert the description schema to an Extensible Markup Language (XML) schema based on the processed particle; obtain candidate JSON data for validation; convert the candidate JSON data to XML data; and validate the candidate JSON data based on the XML data conforming to the XML schema. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable medium having computer instructions stored thereon that are executable by a processing device to perform or control performance of operations comprising:
-
generating a description schema that describes valid JavaScript Object Notation (JSON) data using one or more JSON constructs, the description schema including a definition, wherein the definition includes an object definition, a string definition, or a number definition; identifying the definition as an object definition; obtaining a content model of the object definition; processing a particle of the object definition based on the content model, wherein the particle includes a sequence definition, a choice definition, or a named definition; converting the description schema to an Extensible Markup Language (XML) schema based on the processed particle; obtaining candidate JSON data for validation; converting the candidate JSON data to XML data; and validating the candidate JSON data based on the XML Schema and the XML data conforming to the XML schema. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification