Test.Beany

static class Beany implements JSONString

Beany is a typical class that implements JSONString. It also provides some beany methods that can be used to construct a JSONObject. It also demonstrates constructing a JSONObject with an array of names.

Fields

aBoolean

public boolean aBoolean

aNumber

public double aNumber

aString

public String aString

Constructors

Beany

public Beany(String string, double d, boolean b)

Methods

getBENT

public String getBENT()

getNumber

public double getNumber()

getString

public String getString()

getX

public String getX()

isBoolean

public boolean isBoolean()

toJSONString

public String toJSONString()

toString

public String toString()