JSON
Paul Timms
4-24-17
I am sending an area containing JSON using SendWebRequest. The reply from the other system sometimes contains JSON, or if there is an error it may only contain a string of text. When using ParseJSONArea, I can see in hansa.log this message:


json problem: json not starting with '{' or '['

Is there a way in HAL to detect the same? Or is it a matter of checking that the first character in the area is a { or a [ ?

Also in hansa.log is an HTTP response such as the following:

GetOneHttpMessageFromSock: HTTP/1.1 404 Not Found


Is there a way in HAL to read this HTTP response? If so it would make for better error detection.

Thanks

Paul
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Aldevinas Katkus
No idea. I just have a note: FileNameFromFolder() for non-existing folder causes ResetCompany() to fail?...
11:16 29 Oct 2025
Aldevinas Katkus
8.5 2023-04-19 (build 85550290) In the server on the first run: 2025-10-29 09:07:29 Requesting Lookup address 2025-10-29 09:07:29 Failed to create e-mail back, unknown source register What th...
08:20 29 Oct 2025