< 1 2   Sort: Rank

JSON Schema Validation for JSON Object Values
What validation keywords I can use in JSON Schema to specifically validate JSON Object values? The current JSON Schema specification supports the following validation keywords to specifically validate JSON Object values. They are not applied if the JSON instance is not a JSON Object. "maxProperties"...
2017-09-01, 348👍, 0💬

References to JSON Types Defined Externally
How to reference a JSON type that is defined externally in another JSON Schema? If a JSON type is defined externally in another JSON schema, you can reference it using its absolute address. For example, the following JSON schema has two external references. One refers to a JSON Type defined in a loc...
2017-08-25, 376👍, 0💬

Multiple JSON Schema Validation Keywords
How multiple Validation Keywords work in JSON Schema? Multiple Validation Keywords work in JSON Schema with the "AND" logic. The order of validation keywords is not important. In other words, all of them are applied individually to the JSON instance based their specified conditions. For example, the...
2017-08-25, 366👍, 0💬

JSON Type Definitions and References
How to define a JSON type and reference it in JSON Schema? If you want to define a JSON type, and reference it later in your JSON Schema, you can: 1. Name your JSON type can put it inside the "definitions" property. For example, "rating" as a JSON type can be defined as shown below: { "definitions":...
2017-08-25, 355👍, 0💬

'type' - JSON Schema Validation Keyword
How to use the "type" JSON Schema validation keyword to validate JSON instances? "type" is a generic JSON Schema validation keyword that always applied to the JSON instance. When "type" is specified, the JSON instance must match one of the given JSON types: "null", "boolean", "object", "array", "num...
2017-08-25, 353👍, 0💬

Generic JSON Schema Validation Keywords
What are other generic JSON Schema validation keywords? Several other generic JSON Schema validation keywords are listed below. They are always applied to the JSON instance. "enum" - The JSON instance must match one of the elements in the given array. For example, JSON Schema: {"enum": ["YES", "NO"]...
2017-08-25, 347👍, 0💬

JSON Type Unique Identifications
How to assign a unique identification to a JSON type in JSON Schema? Using "definitions" and "$ref" properties allows to define JSON types and reference them internally in the same JSON schema or externally in another JSON schema. You can also assign a unique identification to a JSON type with the "...
2017-08-20, 338👍, 0💬

Implicit and Explicit ID of JSON Type
What are differences of the implicit ID and the explicit ID of a JSON type in JSON Schema? If a JSON type is defined under a "definitions" property, it could have two identifications: 1. Implicit identification: The implicit identification of a JSON type is an internal bookmark in the form of "#/def...
2017-08-20, 301👍, 0💬

Convert XML to JSON with PHP
How to convert an XML document to a JSON text string with PHP language? Currently, there is no built-in function or any standard extension that you can use to convert an XML document to a JSON text string. But you can use the following PHP example, xml_to_json_converter.php, to convert an XML docume...
2017-08-17, 363👍, 0💬

Mapping XML Elements with Mixed Contents to JSON Values
What is the standard to map XML elements with mixed contents to JSON values? There seems to be no industry standard on how to map XML elements with mixed contents to JSON values. But there are some commonly used conventions: 1. Converting text content in an XML complex element to a JSON object prope...
2017-08-17, 339👍, 0💬

FYIcenter XML to JSON Converter
FYIcenter XML to JSON Converter is an online tool that converts an XML document to a JSON text string.
2017-08-16, 100👍, 0💬

JSON Tutorials
Where to find tutorials on JSON (JavaScript Object Notation) text string format? I want to know how to use JSON. Here is a large collection of tutorials to answer many frequently asked questions compiled by FYIcenter.com team about JSON text string format: Introduction of JSON What Is JSON? JSON Tex...
2017-08-13, 1090👍, 0💬

Examples of Invalid JSON Values
Where to see some Examples of Invalid JSON Values? Here are some Examples of Invalid JSON Values: 1. Invalid JSON Strings: 'John' - Wrong quotes "John says "Hello!"" - " inside the string must use escape sequence \" 2. Invalid JSON Numbers: $1.00 - Currency sign is now allowed in numbers 99.00 * 0.1...
2017-08-13, 369👍, 0💬

< 1 2   Sort: Rank