get请求,参数值为json字符串如何传值

例如:http://localhost:8080/test?content=json字符串,json字符串为{“name”:“xzp”},因为{}在url会被转义,{要改为%7b,}要改为%7d,最终的效果是:

http://localhost:8080/test?content=%7b"name":"xzp"%7d

猜你喜欢

转载自blog.csdn.net/qq_43842093/article/details/123908675