ax5ui / ax5ui-kernel

Javascript UI Framework - AX5UI - Kernel Module

Home Page:http://ax5.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ax5.util.toJson true값 출력 이슈

leehan0617 opened this issue · comments

var filObject = {
a : 1, 
s : "string", 
oa : {pickup:true, name:"AXISJ"}, 
os : {pickup:true, name:"AX5"}
};
var result = ax5.util.filter( filObject, function(){
    return this.pickup;
});
console.log( ax5.util.toJson(result) );
> [{"pickup": , "name": "AXISJ"}, {"pickup": , "name": "AX5"}] // true 값이 보이지 않습니다.
var filObject = {
a : 1, 
s : "string", 
oa : {pickup:true, name:"AXISJ"}, 
os : {pickup:true, name:"AX5"}
};
var result = ax5.util.filter( filObject, function(){
    return this.pickup;
});
console.log( JSON.stringify(result) );
> [{"pickup": true, "name": "AXISJ"}, {"pickup":true , "name": "AX5"}] // true 값이 보입니다.

ax5.util.toJson 과 JSON.stringify의 true 값이 다르게 나옵니다.

@hyunjun19 버그 픽스된 버전을 커밋했습니다. 머지 후 테스트 계속 해주세요.~