vb.net - Problem while sending JSON DATA -


i have pass json data in particular format. app coded in vb.

the following code :

 dim jsonobject new json.jsonobject     jsonobject.item("count") = new json.jsonnumber("0")      jsonobject.item("data") = new json.jsonarray("")     **jsonobject.item("success") = new json.jsonstring("true")**      problem lies in line : 

jsonobject.item("success") = new json.jsonstring("true") . error message being shown " type 'jayrock.json.jsonstring' has no constructors."

just add have imported associated libraries .

what should tackle problem ??

try this:

dim jsonobject new json.jsonobject   jsonobject.item("count") = 0   jsonobject.item("data") = new json.jsonarray()   jsonobject.item("success") = "true" 

in other words, can use primitive types string , integer values.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -