changing json definition structure