0
我有一個JSON對象,我想將其轉換爲/字符。json使用ruby逃脫鏈接
對象:
{
"id":"123",
"name":"test",
"link":"https://google.com"
}
期望的結果:
{
"id":"123",
"name":"test",
"link":"https:\/\/google.com"
}
我怎麼能在Ruby中,回報率做這種轉變?