Correct use of Json.