io.ebean.text.json.package-info Maven / Gradle / Ivy
/**
* JSON formatting and parsing objects (See JsonContext).
*
* The goal is to provide JSON support taking into account
* various ORM issues such as partial objects (for fetching and
* updating), reference beans and
* bi-directional relationships.
*
* Example:
* {@code
* // find some customers ...
*
* List list = DB.find(Customer.class)
* .select("id, name, status, shippingAddress")
* .fetch("billingAddress","line1, city")
* .fetch("billingAddress.country", "*")
* .fetch("contacts", "firstName,email")
* .order().desc("id")
* .findList();
*
* JsonContext json = DB.json();
*
* // output as a JSON string
* String jsonOutput = json.toJson(list);
*
* }
*/
package io.ebean.text.json;
© 2015 - 2025 Weber Informatics LLC | Privacy Policy