I am using JSON.Serialize to generate JSON from Apex class object then sending JSON request to Ruby on RAILS but I'm getting invalid JSON format because SALESFORCE is sending JSON with escape character format.
{“{\”enpoint\”:\”\”,\”addresss\”:\”bangalore\”,\”id\”:\”12345\”}"}
Please note, I am using JSON.serialize(obj) to generate the JSON string.
["{\"Status\":\"Json format is invalid. Please check JSON format\"}"]