Error from server (BadRequest): json: cannot unmarshal string into Go value of type map[string]interface {}
Golang json unmarshal Error
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'}}"