package fr.umlv.json;

public class Main {
	public static String toJSON(Person person) {
		// TODO
	}

	public static String toJSON(Alien alien) {
		// TODO
	}

	public static void main(String[] args) {
		var person = new Person("John", "Doe"); 
		System.out.println(toJSON(person)); // { "firstName": "John", "lastName": "Doe" }
		var alien = new Alien(100, "E.T.");
		System.out.println(toJSON(alien)); // { "age": 100, "planet": "E.T." }
	}
}