I have a POJO that contains a single authentication token in a string variable. I need to send this to my API using the following template:
{ “auth” : { api_key”:”XXXX” } }
I am using moshi to convert my POJOs to JSON, which returns
{"api-key":"XXXX"}
How can I add the extra brackets on the outside of my current one using a retrofit converter?