When the link http://localhost:3000/calendar.json, the result become
[{“id”:2,“start”:“2012-02-07T20:11:00+08:00”,“end”:“2012-02-07T22:11:00+08:00”,“allDay”:false}]
I don’t know how to remove quotation mark. Below the json I want:
[{id:2,start:“2012-02-07T20:11:00+08:00”,end:“2012-02-07T22:11:00+08:00”,allDay:false}]
Your JSON “below” (what you say you want) is invalid JSON. http://json.org/
All keys defining an object in JSON are strings. String are quoted with
double quotes. Read the spec for yourself.
Hi Robert, you are right. All must have double quotes except the
boolean. I just have solved my calender project already. Thank you for
provide me the information. This information really useful and easy
understand.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.