use json object in javascript to show in confirm window
i have jsonObject coming as string from controller, jsonObject is
something like this:
`{"loadList":[{"Name":"AAAA","Load":"N GND"},
{"Name":"BBBB","Load":"N GND"},
{"Name":"CCCC","Load":"N GND"},
{"Name":"DDDD","Load":"N GND"}]
} );`
I need to use the above text in a java script confirm window like,
Name:AAAA Load:N GND
Name:BBBB Load:N GND
Name:CCCC Load:N GND
Name:DDDD Load:N GND
what I am doing is var obj = $.parseJSON( ${jsonObject} ); but obj turn
out to be null!
Any help is appreciated!
No comments:
Post a Comment