Thread: nsJSON plug-in
View Single Post
Old 27th September 2017, 13:13   #57
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,194
How are you supposed to delete a tree? Especially the "default"? tree?

Quote:
nsJSON::Set /value '{ "Input": [ { "test1": false, } ] }'
nsJSON::Delete /end # <-- Crash on exit!
Quote:
nsJSON::Set /value '{ "Input": [ { "test1": false, } ] }'
nsJSON::Delete "" /end # <-- Does nothing
Quote:
nsJSON::Set /value '{ "Input": [ { "test1": false, } ] }'
nsJSON::Set /value '{}' # <-- "Works"

nsJSON::Set /value '[]'
nsJSON::Set /value '{ "Input": [ { "test1": false, } ]' # Not valid JSON now?
nsJSON::Set /value '{}' # <-- Now it fails
Quote:
nsJSON::Delete /tree "" /end # <-- Crash

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote