1 2 >   Sort: Date

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, 1137👍, 0💬

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, 677👍, 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, 480👍, 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: <!-- JSON-parse-Transformed.html Copyright (c) FYIcenter...
2017-09-08, 450👍, 0💬

JSON-stringify.html - JSON.stringify() Example Code
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example code in JavaScript. <!-- JSON-stringify.html Copyright (c) FYIcenter.com --> <html> <body> <script type="text/javascript"> var str1 = JSON.strin...
2017-09-08, 438👍, 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, 428👍, 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, 424👍, 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, 413👍, 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, 413👍, 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, 413👍, 0💬

JSON to XML Conversion at freeformatter.com
How to use the JSON to XML Conversion Tool at freeformatter.com? If you want to try the JSON to XML Conversion Tool at freeformatter.com, you can follow this tutorial: 1. Go to the JSON to XML Conversion Tool page at freeformatter.com. 2. Enter the following JSON value in the text area: ["Hello", 3....
2018-03-18, 398👍, 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, 390👍, 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, 386👍, 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, 384👍, 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, 382👍, 0💬

json_last_error_msg() - PHP JSON Error Message
How to detect errors occurred in the json_decode() call? You can use the following two functions to detect error and display error message occurred during the last call of json_decode() or json_encode(). json_last_error() - Returns the error code occurred in the last json_decode() or json_encode() c...
2018-03-04, 378👍, 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, 376👍, 0💬

json_decode() - JSON Object to PHP Object
How to access properties from the PHP object returned from json_decode() on a JSON object? By default, json_decode() will convert a JSON Object to a PHP object of the default class "stdClass". There are different ways to access properties in the output PHP object: $obj->property_name - Return...
2018-03-04, 370👍, 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, 368👍, 0💬

XML to JSON Conversion at jsonformatter.org
How to use the XML to JSON Conversion Tool at jsonformatter.org? If you want to try the XML to JSON Conversion Tool at jsonformatter.org, you can follow this tutorial: 1. Go to the JSON and XML Conversion Tool page at jsonformatter.org. 2. Enter the following XML document in the XML text area: &...
2018-03-18, 367👍, 0💬

json_decode() - JSON Array to PHP Array
How to access elements from the PHP array returned from json_decode() on a JSON array? By default, json_decode() will convert a JSON Array to a PHP array with integer indexes of 0, 1, 2, ... There are different ways to access elements in the output PHP array: $array[i] - Returns the element of the g...
2018-03-04, 363👍, 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, 363👍, 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, 362👍, 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, 358👍, 0💬

1 2 >   Sort: Date