You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try command > MOS.EXE CALL FS.Remove '{"filename": "test"}' and have response:
Error: Args ['{filename:test}'] is not a valid JSON string.
I try to write args: "{'filename':'test'}", {"filename": "test"}, {"filename": "test"}, {filename: test}
In all cases i have one response: not valid JSON string.
The text was updated successfully, but these errors were encountered:
escaped quotes might help"{\"filename\":\"test\"}". You can always tell what's actually getting to the program by testing with echo. However on OSX echo '{"filename":"test"}' returns {"filename":"test"} as expected, but it's worth a shot anyway.
Unfortunately, this behavior is normal for Windows: its command interpreter (aka command.com) uses double quote character for parameter concatenation. (ex: myprogram "param with space")
To get "real" quote you have to somehow escape double quotes.
ex: mos call FS.Remove {"""filename""":"""test"""} mos call FS.Remove {\"filename\": \"test\"}
Note, if you put space between {, filename, :, test or } you need to use " for grouping: mos call FS.Remove "{\"filename\": \"test\" }"
Not sure we can fix it in normal way, this is how windows work
I try command > MOS.EXE CALL FS.Remove '{"filename": "test"}' and have response:
Error: Args ['{filename:test}'] is not a valid JSON string.
I try to write args: "{'filename':'test'}", {"filename": "test"}, {"filename": "test"}, {filename: test}
In all cases i have one response: not valid JSON string.
The text was updated successfully, but these errors were encountered: