javascript

Creating dynamic json object with Javascript

A short technical note outlining the basic approach and applicable steps for creating a dynamic json object with javascript.

While programming in Javascript, you may want to create a json object according to the data during the run, the following code will help you.


var jsonData = {}; //Json Object

//jsonData objesine erişebildiğiniz her yerde doğrudan

jsonData["SutunAdi"] = "deneme";

//şeklinde yeni bir sütun ve değer ekleyebilirsiniz