small change in setter and getter of json format