< 1 2   Sort: Rank

FYIcenter JSON Validator and Formatter
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text string and converts it to a pretty format.
2017-11-25, 2466👍, 2💬

💬 2017-11-25 Eric: Agree.

💬 2017-08-13 Neil: Not too bad!

JSON.stringify() Function in JavaScript
Where to get the detailed description of the JSON.stringify() Function in JavaScript? Here is the detailed description of the JSON.stringify() Function in JavaScript. Description - The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer fun...
2017-09-08, 2944👍, 0💬

JSON-parse-Transformed.html - JSON.parse() Value Transformed
How to write a reviver function to transform values while the JSON.parse() function is parsing the JSON text string? Below is a good example on using a reviver function with the JSON.parse() call to transform parsed JSON element values: &lt;!-- JSON-parse-Transformed.html Copyright (c) FYIcenter...
2017-09-08, 2089👍, 0💬

JSON-stringify-Object.html - JSON.stringify() on Objects
How JSON.stringify() behaves on JavaScript objects? When processing an object, JSON.stringify() behave depending on the type of objects based on the following rules: Boolean, Number, and String objects are converted to the corresponding primitive JSON values during stringification. Date objects are ...
2017-09-08, 1990👍, 0💬

Call JSON.stringify() with Replacer Function
What is a replacer function that you can provide the JSON.stringify() function call? The replacer function is an event handler function that is called repeatedly whenever a value, an array element or an object property is stringified during the execution of the JSON.stringify() function. The replace...
2017-09-08, 1959👍, 0💬

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

JSON Schema Validation Keywords
How many validation keywords are supported in JSON Schema? The current JSON Schema specification supports 29 validation keywords: "multipleOf" - If the JSON instance is a number, it must be a multiple of the given value. "maximum" - If the JSON instance is a number, it must be less than or equal to ...
2017-09-01, 1330👍, 0💬

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

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

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, 1195👍, 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, 1327👍, 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, 1300👍, 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, 1251👍, 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, 1215👍, 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, 1146👍, 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, 1249👍, 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, 1194👍, 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, 1334👍, 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, 1211👍, 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, 182👍, 0💬

< 1 2   Sort: Rank