在javascript(client)中序列化和反序列化json吗? [英] serialize and deserialize json in javascript(client)?
本文介绍了在javascript(client)中序列化和反序列化json吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何在javascript(client)中序列化和反序列化json?
how we can serialize and deserialize json in javascript(client)?
推荐答案
最简单的方法是使用此处提供的json库(json2.js) www.json.org [ ^ ]在您的javascript中引用它,然后调用相应的stringify()
和parse()
方法
The simplest way is to probably use the json library (json2.js) available here www.json.org[^] reference it in your javascript and then call the appropriatestringify()
andparse()
methods
这篇关于在javascript(client)中序列化和反序列化json吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文