I have the following JSON string that i am sending to a NodeJS server:
String string = \"{\\\"id\\\":\\\"\" + userID + \"\\\",\\\"type\\\":\\\"\" + methoden
According to the answer here, quotes in values need to be escaped. You can do that with \"
\"
So just repalce the quote in your values
msget = msget.replace("\"", "\\\"");