谢谢大家!
1
mingzhi May 9, 2014
touch test.json
|
2
jsonline May 9, 2014
context 没有交待清楚吧。
|
3
fanzeyi May 9, 2014
|
4
victor May 9, 2014
我的 railstips 的 workflow 也有一样的需求,所以我在 github 上面搞了一个文件
https://github.com/wjp2013/railstips/blob/master/data.json 附 workflow 的网址 https://github.com/wjp2013/alfred2-workflows |
5
powerfj May 10, 2014
fiddler
|
6
ipconfiger May 10, 2014
|
7
ezreal May 10, 2014
|
8
anheiyouxia May 10, 2014
我的方法比较简单比较笨,直接用JS的方法,你可以用Nodejs运行也可以在浏览器的Console下运行:
var jsonObj = new Object(); jsonObj['name'] = 'anheiyouxia' ; jsonObj['mail'] = '[email protected]' ; var child = new Object(); child['a'] = 'aaa' ; jsonObj['child'] = child ; JSON.stringify(jsonObj) ; //"{"name":"anheiyouxia","mail":"[email protected]","child":{"a":"aaa"}}" |