Invalid Json: with RxAlamofire

Hi,here is my request body
body = [“name”:“challenge”,“phoneNumber”:"+454545",“age” : “33”]
and here is request function
invokeWithRequest(RequestMethod.RequestMethodPost, url: “https://api.backendless.com/v1/data/Challenge”, parameters: body, headers: nil, errorHandler: DefaultError(), progressHandler: DefaultProgress())
and the header
headers[“application-type”] = “REST”
headers[“Content-Type”] = “application/json”
and it give me this error
{
code = 8002;
message = “Could not parse request with message: Invalid Json”;
}
any suggestion?

Edited I put headers with parent function,i know that in this method header is nil

Hi Narek,
try this:

body = {"name":"challenge","phoneNumber":"+454545","age" : "33"}

Regards,
Stanislaw

Thanks for answer,problem is that the RxAlamofire function accpet dictionary and not string

body = {"name":"challenge","phoneNumber":"+454545","age" : "33"}

this gives me compile error

Anyway you should make valid json string. Unfortunately I do not know how to do it using RxAlamofire. The error message is self explanatory - just find the way to send valid json.

Regards,
Stanislaw