jquery json

’1′,’test2′=>2,’test3′=>3);

$test = json_encode($test);
?>

var test = ;
var first = true;
jQuery(document).ready(function(){
jQuery.each(test, function(key,value){
if(first){
jQuery(‘#test’).append(‘
키 값

‘);
first = false;
}
jQuery(‘#test’).append(‘
‘+key+’ ‘+value+’

‘);
});
});