Saturday, December 3, 2011

Loading JSON Test Data

I'm wondering if there's a way to have a json file, hosted locally or online, where I can create a bunch of test data and then load it into my GWT app and parse it like a RequestBuilder call. I've been looking online for a way to do this and nothing seems to work. I then tried putting together a php script to return some json, and even though it works in the browser and returns a 200 status code in my Charles web proxy, in GWT it returns a status code 0 and doesn't give me any data. The php file was not hosted locally and I have the php content type set to application/json. If there's another way to load this json that would be nice. I don't want to have to create these json objects from scratch in GWT.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TMv9iuNq82MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment