fix use of Json class