在线XML转JSON

在线XML/JSON互相转换工具

.btn { border: none; font-size: 11px; line-height: 11px; font-weight: 500; text-transform: uppercase; margin: 17px 9px;} 示例XML 示例JSON XML转JSON JSON转XML 格式化 保存文本 清空结果 var outtype=""; function demo_xml() { var xml = " Jack Herrington PHP Hacks O\'Reilly Jack Herrington Podcasting Hacks O\'Reilly "; $('#input').val(xml); } function demo_json() { var json = '{"tools": [ { "name":"css format" , "site":"css" }, { "name":"json format" , "site":"json" }, { "name":"pwd check" , "site":"password" } ] }'; $('#input').val(json); } function showmsg(type, msg) { $('#message').removeClass("green")