|
I have an RPGLE program creating JSON using YAJL. When I dump the--
buffer to the IFS, the data is correct. However, when I return it to
my app or Fiddler (with Fiddler I can look at the raw hex coming
back), it has extra characters before and after the JSON data.
Below is the complete response that I am receiving. Any idea where
the 13e in the middle and the 0 at the end are coming from? These are
not in the buffer when I dump it to the IFS. I am guessing this is
somehow related to a configuration of the HTTP server but since I
don't know what the characters are, I don't know what to look for to
know how to turn them off.
HTTP/1.1 200 OK
Date: Mon, 17 Oct 2022 21:10:11 GMT
Server: Apache
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json; charset=utf-8
13e
{
"sqlString": "select * from $http.custfile",
"results": [
{
"CUSTNO": "1",
"NAME": "Cust 1",
"STREET": "Street 1",
"CITY": "City 1",
"STATE": "ST",
"POSTAL": "12345-6789"
}
],
"status": true,
"message": ""
}
0
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400)
mailing list To post a message email: WEB400@xxxxxxxxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxxxxxxxx Before posting, please
take a moment to review the archives at
https://archive.midrange.com/web400.
As an Amazon Associate we earn from qualifying purchases.
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.