Hi,
In a webservice method, I want to append a JSON object to the JSON response. But the resultant object is not properly formatted.
Here is the code where the JSON object is added to the response:
st.SetValue (result)
js.Start ()
js.Load (st)
jsonResults.Append (js)
Here is the JSON that is returned:
{
"utQuery_response":
{
{
"list":[{"ClientNo":453,"Name":"Mondi"},{"ClientNo":732,"Name":"Meyersdal Shopping Centre"}]
}
}
}
The problem seems to be the extra pair of curly bracket being added when js is appended to jsonResults. Is there a property to be set on js that would prevent this?
Thanks,
Thys