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
Kevin Stepper
Hi, years ago we used to have the email and conference module. Did not need it so we dropped it. We hav recently implemented global users, which are all named users and therefor seem to need a m...
18:07 3 Aug 2026
Andis Blicāns, Grasko
Hello! Does anyone have a complete list of parameters that can be used in the "parameters.txt" file? If so, I would be grateful if you could send them to me at andis.blicans@gmail.com...
15:04 2 Aug 2026