I'm writing my first web service, and I need to create a DIY service rather then IWS, because the request JSON will have arrays with like 100 fields per array element - I don't think IWS can support that gracefully (Please let me know if I'm wrong there). My plan is to create a big data structure with an embedded array and use data-into to parse the request into the data structure.
I'm having a surprising amount of trouble figuring out how to get the request JSON data from the HTTP server into the variable that I'll parse with data-into. In Scott's online PDF on this topic, I see the
but from what I can tell, that's just being used to search the query string manually.
To get the request's JSON data into a variable, do I use some modification of the above?
Thanks!
I'm having a surprising amount of trouble figuring out how to get the request JSON data from the HTTP server into the variable that I'll parse with data-into. In Scott's online PDF on this topic, I see the
Code:
uri =%str(getenv('REQUEST_URI'));
To get the request's JSON data into a variable, do I use some modification of the above?
Thanks!
Comment