× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, Aug 26, 2015 at 11:29 AM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

bradley

where do the mime header come from?

From a template file named stdjsonheader.erpg. There's a link to it right
there. :)


how do you process the incomming json?


I don't.. I was just putting together an example of outputting JSON using
the application/json content-type and how our eRPG SDK has been updated so
you can output the JSON with any CCSID you want instead of relying on the
HTTP server.



how do you handle different clients, one may send you text/plain and
another
application/json and expext to get the same content-type back?


This isn't that type of application. But, if it were, an if statement
could control the headers that are spit out back the the requestor.

Did you look at the source for the program? It's pretty straightforward.

Brad
www.bvstools.com




On Wed, Aug 26, 2015 at 6:11 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

Well, I've updated our eRPG SDK to allow you to set the CCSID of the
output
for situations like this... it was a pretty easy fix.

The example is here:
http://erpgsdk.bvstools.com/demo/

Look down the right for the DSPJSON example and you can run the program
as
well as view the template file and JSON file used (which was retrieved
from
Google Geocoding API for an address of the white house).

Brad
www.bvstools.com



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.