I have json string like this:
str = {"id" : %s, "name": %s}
I want to replace format specifier %s with values. I have array that contains values to be replaced.
I am able to do this using
str.format(arrayofvalue: _*)
but this works only for one specific type format identifier.
what in case if i have string with multiple format specifier like (%d, %s)
str = {"id" : %d, "name": %s}
above solution does not work in this case (illegalFormatConversion). Is there any function/ work around to handle this.
arrayofvalue.