For each of the contexts below, propose a JSON representation of data.
You can check your syntax using the online JSON formatter.
Mary, John, and Karl work in the same company. Mary was hired in 2008 in the financial department, John and Karl two years later in the marketing department and design office respectively. Depending on their individual results, employees sometimes receive a year-end bonus. Mary received a €1,000 bonus in 2010, John received €800 in 2015, €500 in 2017, and €1,000 in 2019.
Here are some books I have in my library: I have 2 books written by André Breton, or to which he collaborated: "Nadja" (ISBN 978-2070360734) and "Les Champs magnétiques" (ISBN 978-2070318773) written with Philippe Soupault. I also have "La Métamorphose" by Franz Kafka (978-2070462872).
My address book contains a set of contacts. Each contact has at least a first name, sometimes a last name too, and one or more phone numbers (each phone number is given a type such as "office", "mobile", "home"...). Most contacts also have an email address. I also know the home address of some persons; home addresses are composed of a street, a city, and a zip code. Write a JSON document with 3 contacts, varying the possibilities, values are up to you.