Parse C# to javascript, too big for Json -


i have viewbag diffrent texts in, set textbox. depending on dropdown value choose. have tried passing json doing this: c#

 var jss = new system.web.script.serialization.javascriptserializer();  var val = jss.serialize(viewbag.forbeholddata); 

javascript

var val = '@html.raw(val)'; var obj = $.parsejson(val); 

but getting error when try parse json, because val larger 1500. of know better solution this?

thanks.

has been answered in comment section. had nothing size, error in json syntax. persons taking time help.


Comments

Popular posts from this blog

angular - DownloadURL return null in below code -

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -