3

i want to get simple one value from a json data row.

// json: {"id":1,"name":"test1","price":"$1"} 
var id = JSON.stringify(row).id;

but it doesnt work. Has anyone an idea ?

user2083524
  • 121
  • 1
  • 5
  • 16

1 Answers1

2

try this.

JSON.stringify(row, ["id"])

hongtaesuk
  • 557
  • 5
  • 10
  • 19