I have a vb.net web handler which builds two strings The strings basically looks like this:
[“filename”, “filepath”],[“filename”, filepath”],…,[“filename”, filepath”]
I need to return it in a way that the strings are sent with the name of the list, followed by the list
[“listname”: {[“filename”, “filepath”],[“filename”, filepath”],…,[“filename”, filepath”]}
I know that the web handler will automatically json encode the data, and that the way I have built my list should be reworked (the way we previously used this it was exactly what we needed).
What might be a better way for me to house my data and return it to the browser in a way that is understood correctly?
The answer in this post might help you out:
ASP.NET Returning JSON with ASHX
);