Convert json to dict after recieving