首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 蓝洞JSON实现软件

蓝洞JSON实现软件

  • 资源大小:35.56 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 软件 json 实现 蓝洞

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.209656s