Code: Select all
test:={"general":{ 1: "name", 2: "author", 3: "edition", 4: "publication", 5: "price"},"page":{total: 720, current:20}}
msgBox,%test ; gives blank value
msgBox,%test.general.1 ; give correct value ----> this is the required output i am looking for
Code: Select all
test={"general":{ 1: "name", 2: "author", 3: "edition", 4: "publication", 5: "price"},"page":{total: 720, current:20}}
msgBox,%test ; gives whole string
msgBox,%test.general.1 ; gives blank value ---> and fails
i tried fileread.
{"general":{ 1: "name", 2: "author", 3: "edition", 4: "publication", 5: "price"},"page":{total: 720, current:20}} ; this is saved as file.txt
Code: Select all
FileRead, test, file.txt
msgBox,% test ; gives the whole thing as string
msgBox,% test.general.1 ; gives blank , i am trying to get "name"