JSONGetChildNAME primitive function
icodelab
2019-02-09

Hi,

I am working with json files with HAL, I have seen some primitives for JSON use, I need to know how to use this primitive JSONGetChildNAME


Best regards
JL
Panama
Giuseppe L.
2019-02-12
Hi JL,
thank you for reaching out to us with your enquiry.

I passed your documentation request to our Operations Department.

Please stay tuned, We'll come back to you as soon as we will be ready.

Best Regards,
Giuseppe
HansaWorld Italy
Paul Timms
2019-02-13
It's very similar to XmlGetChildName, there's one example of this in source code (xmlTools.hal).
Vadym
2019-03-04
begin
    area a_reply;
    json jobj;

webgetpostdata(a_reply);
jobj = parsejsonarea(a_reply);
       

logtext(0,JSONCountChildren(jobj,"roles"));

logtext(0,JSONGetChildNAME(jobj,"roles[0]",0));

return;
end;
David Delač
2019-12-19
Hi icodelab,

Example:

json js;
string 255 root,name;
Integer i;

name = JSONGetChildName(js,root,i);

• js = json area
• root = string path of your Json key
• i = child key ordinal number

Best Regards,
David D.
HansaWorld Support
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Back to the list
Latest Posts
Piotr Wycichowski
Hi, I checked option "Use External Mail Software" in setting "Mail and Conferences Settings" in module "Mail and Conferences". When I create an invoice email I have a ...
17:38 8 Aug 2025
Piotr Wycichowski
Hi, Is somebody experienced in necessary settings for successful connection to server using webclient. When I tried, I got warning in brower, that Web client settings for HTTPS is not setup. So I ...
12:59 21 July 2025