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
Post a Comment