JSON...20 Aug 2016 JSON Javasscript Ruby
1) Its a collection of key value pair. Almost all the OOPS languague has datastructure which stores the data in the key value pair. 2) Key should be a string enclosed in double quotes 3) Value could be a string, a number, an array, an object, a boolean, null 4) No methods are allowed
Ruby hash is a data structure to organize data in the key value pair. A key could either be a symbol or a string and when JSON string is generated from Ruby hash, key always becomes string in JSON enclosed in “ “.
Type and class
One Perfect Scenario: