added json encode decode boolean