fix bug in json maker