JSON.parse or alternative library that will also parse dates

I'm using [Json.NET][1] to serialize some data. It is very flexible with how dates are serialized so I can output it to any format necessary. Is there a date format that the browser provided `JSON.parse` function will deserialize into `Date` objects? If not, does anyone know of a good library that deserializes JSON into JavaScript objects, including dates? I really don't want to have to use a `RegExp` and a whole bunch of ugly code to parse dates after deserializing the rest of the JSON; I just want a single function call that does the whole thing. [1]: http://json.codeplex.com
Since when have standards stopped browser vendors from implementing various behaviors?

以上就是JSON.parse or alternative library that will also parse dates的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准