Hi everyone, I am having problems with JSON data retrieved from a web service. Basically, a jQuery AJAX function calls a web service which queries a database. The data from the database is then placed in a DataTable. Finally, it is serialized and sent back
to the AJAX function.
The data returned by the AJAX function call is used to create a chart and it requires that the data be in the following JSON array format
[
["colorname", 5],
["colorname", 8],
["colorname", 4]
]
I was not able to use the data returned by the AJAX function to create a chart. However, I was able to create a chart by using data from a static JSON file whose values were manually entered and in the format I showed above.
So my question is how do I return data to the AJAX function from a webservice in the JSON format I require. Thanks in advance for your help.
Go to the complete details ...