2010-04-09

JSON Formatter 用法

Frame Actions:
import lin.shinder.utils.JsonFormatter;
input_txt.text='[{"name":"shinder", "num":"123"}, {"name":"dephne", "num":"124"}]';
format_btn.addEventListener(MouseEvent.CLICK, formatClick);

function formatClick(event) {
 var jf:JsonFormatter=new JsonFormatter(input_txt.text);
 output_txt.text = jf.result;
}

沒有留言:

FB 留言