escape characters in json values

Characters " and \ in the command or other values need escaping for successful importing.