com.avaje.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:
*
* // find some customers ...
*
* List<Customer> list = Ebean.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 = Ebean.json();
*
* // output as a JSON string
* String jsonOutput = json.toJson(list);
*
*
*/
package com.avaje.ebean.text.json;