I'm trying to send a JSON argument to an activity, and it seems like I can't do so via a command like the following:
adb shell am start -n <activity> -e argument_name '{"blah":"blah"}'
Any double quotes inside of the JSON string get stripped out once my app gets them ("blah":"blah" becomes blah:blah). I have to launch adb shell first, then run am start so that the quotes don't get stripped out. This happens on Windows Powershell.
I tried the solution suggested here by Jerry101 (i.e. custom handling of quotes) but that didn't help. I would prefer not to enter the shell first because I want to automate the starting of android apps from a Powershell script. This means running the adb shell command that fires off commands to the shell like the example above (as a one-liner).