I have the following code:
var str = """{"casino"=>"pro"}"""
echo res.replace(peg"{\ident}'=>'{\ident}", "$1:$2")
I got result: {"casino"=>"pro"}
but I want the result {"casino":"pro"}, is there anyway to do this? Thanks
I have the following code:
var str = """{"casino"=>"pro"}"""
echo res.replace(peg"{\ident}'=>'{\ident}", "$1:$2")
I got result: {"casino"=>"pro"}
but I want the result {"casino":"pro"}, is there anyway to do this? Thanks