Example usage for org.apache.commons.lang3.builder Person setAddress

List of usage examples for org.apache.commons.lang3.builder Person setAddress

Introduction

In this page you can find the example usage for org.apache.commons.lang3.builder Person setAddress.

Prototype

public void setAddress(int address) 

Source Link

Usage

From source file:com.doctor.Jodd.json.QuickGo.java

/**
 * @param args/*from  w  ww . j a  v  a  2s  .  c o  m*/
 */
public static void main(String[] args) {
    Person person = new Person();
    person.setAddress("address-888");
    person.setName("doctor who");
    String json = new JsonSerializer().serialize(person);
    System.out.println(json);

    Person person2 = new JsonParser().parse(json, Person.class);
    System.out.println(person2);
}