Vorbly Code | JavaScript | JavaScript JSON

<JavaScript> Reference

VORBLY CODE - CODE YOUR WEBSITE

JAVASCRIPT REFERENCE

JavaScript (or JS) enables users to create interactive webpages and is an essential code to learn for websites and web applications. Most modern websites use JavaScript.

The JavaScript Reference serves as library to define various JS elements such as arrays, date, json, math, operators and regular expressions (regexp) to help you build your website.

arrow&amp;v

JavaScript JSON

JSON (or JavaScript Object Notation) is a format for storing and transmitting data. JSON data is in the form of text which can be transmitted anywhere and read by other programming languages.

For Example:
var myObj = { "name":"Mike", "age":35, "city":"Chicago" }; // JavaScript Object //
var myJSON = JSON.stringify(myObj);​ // Converted into JSON //
window.location = "profile_json.php?x=" + myJSON; // Sending JSON Data //

NAME

DESCRIPTION

CATEGORY

parse()

Parses a JSON string and returns a JavaScript object

Methods

stringify()

Convert a JavaScript object to a JSON string

Methods

 

LEARN CODING FOR FREE!

WEB DESIGN & DEVELOPMENT TIPS & ADVICE