changing json dictionary format