Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v1) • Parsing JSON string with Jxon library

$
0
0
Hi Folks,

I'm using the Jxon.ahk (Lib function). I understand the AHK assignment statement syntax after calling oJxon:=Jxon_Load(jsonvar). For example, with this Json data subset...

CODE:

{
"log": {
"version": "1.1",
"creator": {
"name": "HelloWorld",
"version": "123.45"
},
"pages": [
{
"timestarted": "2024-03-17T13:15:48",
"id": "page_3",
"title": "https://www.test.com"
}
],


...the assignment statments for version and name are:

CODE:

LogVersion:=oJxon.log.version
LogCreatorName:=oJxon.log.creator.name


Works great! But I can't figure out how to get the array elements. For example, let's say the Jxon call is oJxon:=Jxon_Load(jsonvar,objBase,arrBase). What is the assignment statement for the timestarted element?

Thanks much, Joe

Statistics: Posted by JoeWinograd — 30 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles