How do i convert a string to a JSON object in JQuery?
Posted
by Rob
on Stack Overflow
See other posts from Stack Overflow
or by Rob
Published on 2009-05-28T15:12:11Z
Indexed on
2010/04/21
7:23 UTC
Read the original article
Hit count: 247
I have a string in my db I want to pull into my page and convert to a json object.
[
{id: 1,title: "Long Event",
start: new Date(2009, 5, 6, 14, 0),end: new Date(2009, 5, 11)},
{id: 2,title: "Repeating Event",
start: new Date(2009, 5, 2)},
{id: 3,title: "Meeting",
start: new Date(2009, 5, 20, 9, 0)},
{id: 4,title: "Click for Facebook",
start: new Date(2009, 5, 27, 16),end: new Date(2009, 5, 29),
url: "http://facebook.com/"}
]
How can I do this using JQuery?
© Stack Overflow or respective owner