worked on to json and maps