improvements in the use of json