changes to json code