Hi
I send this json to my controller (as seen in my webrick log):
{\"repeatEveryYear\":\"TRUE\",\"scheduleTime\":\"2010-09-09T16:11:46Z\",\"message\":\"Hello World\n\nFirst test\"}
I dont know where all the escaping comes from, it is not something I add, and it seems rails eats it just fine?
My problem is that the second \n gets eaten some where in the process. Here is my controller that reads the json:
class SchedulesController < ApplicationController
def create
@schedule = Schedules.new.from_json(params[:schedule])
@schedule.save
render :json => "ok"
end
end
Any ideas on what I can do to fix this?
Thank you