Golang json unmarshal Error

Error from server (BadRequest): json: cannot unmarshal string into Go value of type map[string]interface {}

example:

kubectl patch configmap tcp-services -n kube-system --patch '{"data":{"6379":"default/redis-service:6379"}}'

console:

Error from server (BadRequest): json: cannot unmarshal string into Go value of type map[string]interface {}Wi

Fixed

On Windows:

kubectl patch configmap tcp-services -n kube-system --patch "{\"data\":{\"6379\":\"default/redis-service:6379\"}}"

or

kubectl patch configmap tcp-services -n kube-system --patch "{'data':{'6379':'default/redis-service:6379'}}"