资 源 简 介
Blue Hole JSON
Fast JSON parsing and writing based on runtime code generation. BHJ works directly with POJOs and does not use intermediate JSON typed objects.
To use the Blue Hole JSON library, you will need to include bhj-1.0.0.jar and javassist.jar: the rest is easy...
```
public void testDoc() throws IOException
{
AddressBook x = new AddressBook();
AddressBook y;
JSONWriter writer = new JSONWriter();
JSONParser parser = new JSONParser();
String json;
x.setOwner( new Person( "Mary", 41, Sex.FEMALE ) );
x.getPeople().add( new Person( "Mary", 41, Sex.FEMALE ) );
x.getPeople().add( new Person( "Bob", 14, Sex.MALE ) );
x.getPeople().add( new Person( "Alice", 22, Sex.FEMALE ) );
x.getPeople().add( new Person( "Greg", 64, Sex.MALE ) );
x.getPeople().add( new Person( "Sharon", 9, Sex.FEMALE ) );
x.getPeople().add( null );
// Convert objec