谢谢大家!
|
mingzhiMay 9, 2014
1
touch test.json
|
|
jsonlineMay 9, 2014
2
context 没有交待清楚吧。
|
|
fanzeyiMay 9, 2014
3
|
|
victorMay 9, 2014
4
我的 railstips 的 workflow 也有一样的需求,所以我在 github 上面搞了一个文件
https://github.com/wjp2013/railstips/blob/master/data.json 附 workflow 的网址 https://github.com/wjp2013/alfred2-workflows |
|
powerfjMay 10, 2014
5
fiddler
|
|
ipconfigerMay 10, 2014
6
|
|
ezrealMay 10, 2014
7
|
|
anheiyouxiaMay 10, 2014
8
我的方法比较简单比较笨,直接用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"}}" |