I am looking for a solution to concat double quotes (""
) into a string in Solidity.
What I need looks like this:
'{"id":idHere,"Lname":lname,"Fname":fname}'
All I get is sth like '{\"id\":idHere,\"Lname\":lname,\"Fname\":fname}'
PS: idHere
, lname
and fname
are variables not constant value.
Best Answer
There is a
strConcat()
function in theusingOraclize
contract that you are most likely inheriting from. You could use it like this: