[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web service to serve up JSON



   JSON and�Unicode �
   &#nnnnn; are a HTML entities, JSON must be in UTF-8 and special
   characters in text strings must be encoded.
   [1]http://json.org
   [2]http://www.fileformat.info/info/unicode/char/0fffd/index.htm
   As I wrote I don't know if Scott has implemented the JSON reading
   from YAJL.
   In powerEXT there is two ways to read JSON
   Simple JSON are read by a simple procedure
   success = jsonToField(jsonAddr:jsonSize:'success');
   message = jsonToField(jsonAddr:jsonSize:'message');
   Complex JSON are converted to XML that then can be read in
   either by XML-INTO, XML-SAX or the build in XML reader.
   As far as I know there are three JSON generators for RPG:
   Scotts implementation of YAJL
   Mihael's �[3]http://rpgnextgen.com/index.php?content=json
   My own JSON node support that is very similar to my
   XML and HTML node support. Here are some example code:
   [4]http://5.103.128.110:6382/jonjson.txt
   [5]http://5.103.128.110:6382/jonjsonrdr.txt
   [6]http://5.103.128.110:6382/jonjsonsim.txt

   On Tue, Jan 28, 2014 at 11:14 PM, Raul A. Jager W. <[7]raul@xxxxxxxxxx>
   wrote:

     Yes, it does.
     You can build the JSON in a variable and send it like if it was a
     form.

   toby davis wrote:

     Does HTTPAPI �do JSON �?
     --------------------------------------------------------------------
     ---
     This is the FTPAPI mailing list. �To unsubscribe, please go to:
     [8]http://www.scottklement.com/mailman/listinfo/ftpapi
     --------------------------------------------------------------------
     ---

   -----------------------------------------------------------------------
   This is the FTPAPI mailing list. �To unsubscribe, please go to:
   [9]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

   --
   Regards,
   Henrik Rützou
   �   [10]http://powerEXT.com
   �
References

   1. http://json.org/
   2. http://www.fileformat.info/info/unicode/char/0fffd/index.htm
   3. http://rpgnextgen.com/index.php?content=json
   4. http://5.103.128.110:6382/jonjson.txt
   5. http://5.103.128.110:6382/jonjsonrdr.txt
   6. http://5.103.128.110:6382/jonjsonsim.txt
   7. mailto:raul@xxxxxxxxxx
   8. http://www.scottklement.com/mailman/listinfo/ftpapi
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. http://powerext.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------