I am looking for a string format solution in Scala. I have the below string:
str = {"card_id" : %s,"cust_id": %s,"card_info": {"card_type" : "%s","credit_limit": %s},"card_dates" : [{"date":"%s" },{"date":"%s" }]}
And here I want to replace "%S" with string value. Is there any function in Scala so that I can apply that function and get the proper result?
I have tried string.format("%s", str, arrayofvalue) but it's not giving the proper result.