定义了json工具接口。
gson是google的开源工具,链接。 在spring的xml中如下定义使用:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd">
......
<bean id="jsonUtil" class="net.sourceforge.kivu4j.utils.json.google.JsonUtilImpl" />
......
</beans>