Citizens, I apologize, but I don’t even know the name of what I am doing (it is also interesting to know who will understand me). There is something like this JSON request
{ "id":0, "jsonrpc":"2.0", "method":"server.filter.list", "params":{ "locale":1033 } } A colleague wrote in C #, created a variable for this query:
string json = @"{""id"":""0"",""jsonrpc"": ""2.0"",""method"": ""server.filter.list"",""params"": {""locale"": 1033}}"` I want to create the same variable correctly for sending the request in the future, BUT only in Java.
Actually the question:
- What is this process called?
- How do i write on java it?
I will be very grateful. If something is incorrectly written or designed, write immediately can I can explain.
So it will be right?
String json = "{\"id\":\"0\",\"jsonrpc\": \"2.0\",\"method\": \"server.filter.list\",\"params\": {\"locale\": 1033}}";