change json to dict