Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run more than 2 function in a script #33

Open
dinhkao opened this issue Mar 7, 2024 · 0 comments
Open

Cannot run more than 2 function in a script #33

dinhkao opened this issue Mar 7, 2024 · 0 comments

Comments

@dinhkao
Copy link

dinhkao commented Mar 7, 2024

In my script i have 2 JSON.Load() function, the 1st one works and the 2nd don't. Similar to JSON.Dump... If i use more than 1 JSON function then all except the first one wont work.

Example:
content is a json string
json := JSON.Load(content)

invoice := json.invoice
msgbox, % invoice.Length () ; -> this work, shows the right length

line := StrSplit(sp, " ")
new := {}
new.sp := line[1]
new.sl := line[2]
view := JSON.Dump(new)
msgbox, % view ; -> this dont work, doesnt show anything


if i delete this line: json := JSON.Load(content)
then the JSON.Dump work

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant