Json treatment simplified