日期:2014-05-16  浏览次数:20444 次

求个JSON格式的构造函数
var   o   =
{
"previousMonthEvent ":
[
{ "date ": "2007-7-4 ",
  "event ":
[
{ "hour ": "10   AM ", "title ": "10   title ", "location ": "10   location ", "description ": "10   description "},
{ "hour ": "2   PM ", "title ": "2   title ", "location ": "2   location ", "description ": "2   description "}
]},

{ "date ": "2007-7-17 ",
"event ":
[
{ "hour ": "7   AM ", "title ": "7   title ", "location ": "7   location ", "description ": "7   description "},
{ "hour ": "1   PM ", "title ": "1   title ", "location ": "1   location ", "description ": "1   description "}
]},
{ "date ": "2007-7-29 ",
  "event ":
[
{ "hour ": "9   AM ", "title ": "9   title ", "location ": "9   location ", "description ": "9   description "},
{ "hour ": "5   PM ", "title ": "5   title ", "location ": "5   location ", "description ": "5   description "}
]}

],

"currentMonthEvent ":
[
{ "date ": "2007-8-6 ",
  "event ":
[
{ "hour ": "9   AM ", "title ": "9   title ", "location ": "9   location ", "description ": "9   description "},
{ "hour ": "5   PM ", "title ": "5   title ", "location ": "5   location ", "description ": "5   description "}
]},

{ "date ": "2007-8   -21 ",
  "event ":
[
{ "hour ": "3   PM ", "title ": "3   title ", "location ": "3   location ", "description ": "3   description "}
]}

],
"nextMonthEvent ":
[
{ "date ": "2007-9-19 ",
  "event ":
[
{ "hour ": "9   AM ", "title ": "9   title ", "location ": "9   location ", "description ": "9   description "},
{ "hour ": "1   PM ", "title ": "1   title ", "location ": "1   location ", "description ": "1   description "} ,
{ "hour ": "4   PM ", "title ": "4   title ", "location ": "4   location ", "description ": "4   description "}
]},

{ "date ": "2007-9   -20 ",
  "event ":
[
{ "hour ": "8   AM ", "title ": "8   title ", "location ": &quo