tags:

views:

54

answers:

0

I have an ASP.net website running on two different machines, one with a Vista OS and the other with Windows Server 2003. I am using jQuery to make an AJAX call to a web method in the code-behind, that then calls a web service. On both machines, the call to the web method and web serivce executes without problem and properly formatted JSON data is returned to the code-behind. When the web method has concluded, the JSON data is returned to the jQuery function that initiated the call. The data contains multiple JSON objects. So far, so good.

At this point, the website on the Vista machine properly evaluates the data as JSON and everything is fine. However, on the Server 2003 machine, the Javascript eval() function fails to recognize the data as an array of JSON objects, but rather sees it as one long string of data. Sample data is at the end of this message

My first thought is that something must be missing from the Server 2003 machine, but I am at a loss as to what that could be.

Any ideas?

Thank you for your help.

Chris

"[{"address": "1600 Pennsylvania Ave NW, Washington DC 20500-0005", "moniker": "KOUSADwnZBwQDAQAAAAFd843AAAAAAABhAA--"},{"address": "1600 Pennsylvania Ave NW, Washington DC 20502-0001", "moniker": "IOUSADwnZBwQDAQAAAAFd85pAAAAAAABhAA--"},{"address": "Amer Fund for Afghan Child, 1600 Pennsylvania Ave NW, Washington DC 20500-1600", "moniker": "JOUSADwnZBwQDAQAAAAFd85bAAAAAAABhAA--"},{"address": "First Lady, 1600 Pennsylvania Ave NW, Washington DC 20500-0002", "moniker": "jOUSADwnZBwQDAQAAAAFd84SAAAAAAABhAA--"},{"address": "Greetings Office, 1600 Pennsylvania Ave NW, Washington DC 20500-0039", "moniker": "nOUSADwnZBwQDAQAAAAFd85CAAAAAAABhAA--"},{"address": "President, 1600 Pennsylvania Ave NW, Washington DC 20500-0001", "moniker": "iOUSADwnZBwQDAQAAAAFd84FAAAAAAABhAA--"},{"address": "The White House, 1600 Pennsylvania Ave NW, Washington DC 20500-0004", "moniker": "7OUSADwnZBwQDAQAAAAFd84sAAAAAAABhAA--"},{"address": "White House, 1600 Pennsylvania Ave NW, Washington DC 20500-0003", "moniker": "6OUSADwnZBwQDAQAAAAF d84fAAAAAAABhAA--"},{"address": "White House Station, 1600 Pennsylvania Ave NW, Washington DC 20500-0049", "moniker": "QOUSADwnZBwQDAQAAAAFd85PAAAAAAABhAA--"}]"