Map<String, Customer> map = Ebean.find(Customer.class).findMap("id", String.class);
JsonContext jsonContext = Ebean.json();
JsonWriteOptions options = JsonWriteOptions.parsePath("(id,status,name)");
String jsonString = jsonContext.toJson(map, options);
System.out.println(jsonString);
options = JsonWriteOptions.parsePath("(id,status,name,shippingAddress(id,line1,city),billingAddress(*),contacts(*))");
jsonString = jsonContext.toJson(map, options);