new json encode in js