curl能够返回的请求如何通过网址方式返回

比如我在命令行中输入

 curl --data '{"jsonrpc":"1.0","id":"curltest","method":"getwalletinfo","params":[]}' http://user:123456@127.0.0.1:18332/

得到的返回值是

 {"result":{"walletname":"","walletversion":169900,"balance":0.00652964,"unconfirmed_balance":0.00000000,"immature_balance":0.00000000,"txcount":9,"keypoololdest":1541586836,"keypoolsize":1000,"keypoolsize_hd_internal":1000,"paytxfee":0.00000000,"hdseedid":"903b49b210bd3ef7e36326b34acdadff831ea1e0","hdmasterkeyid":"903b49b210bd3ef7e36326b34acdadff831ea1e0","private_keys_enabled":true},"error":null,"id":"curltest"}

哪我如何通过网页返回相同内容,具体到网页操作应该是怎样,最好给个完整的例子
例如:图片说明

主要就是你的web服务器返回的页面内容用content-type为application/json
然后把对应的数据组织成json的字符串就可以了