json object

JavaScript
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person); import org.json.simple.JSONObject;

class JsonEncodeDemo {

   public static void main(String[] args) {
      JSONObject obj = new JSONObject();

	    inputJSON.put("subscriberName", "subscriber");
	    inputJSON.put("msisdn","7055389495");

      System.out.print(obj);
   }
}Newtonsoft.Json.JsonConvert.SerializeObject(new {foo = "bar"})var jsonArray = '{"required":1, "minlength":2}'
var jsonParsedArray = JSON.parse(jsonArray);
for (key in jsonParsedArray) {
  if (jsonParsedArray.hasOwnProperty(key)) {
      console.log("%c "+key + " = " + jsonParsedArray[key],"color:cyan");
  }
}Prototype code is available here

https://gist.github.com/Cirilord/d0d3f0ba7171deed26bfffe4787d6e0b

Example

let y = {}

Object.deep.(y, 'x.y.z')

console.log(y)
// y => { x: { y: { z: null } } }

OR

let x = {}

Object.deep.(x, 'x.y.z', 10)

console.log(x)
// x => { x: { y: { z: 10 } } }var myObj, x;
myObj = {"name":"John", "age":30, "car":null};
x = myObj.name;
document.getElementById("demo").innerHTML = x;
Source

Also in JavaScript: