Answer the question
In order to leave comments, you need to log in
How can I replace the curly braces with a real value inside a JSON string?
I am developing an Android project. In development I use Retrofit, Gson, RxJava.
For example, I can get such a response from the server and I have to replace curly braces with real values.
{
"text": "Hello {0} World {1} This is {2} test text"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question