Package com.clumd.projects.javajson.api
Interface JsonGenerator
- All Known Subinterfaces:
Json,JsonBuilder
- All Known Implementing Classes:
BasicJsonBuilder
public interface JsonGenerator
This defines all methods required to convert a Java object into a JSON object interperable by this framework.
-
Method Summary
Modifier and Type Method Description JsonconvertToJSON()Convert the current Java Class into a Java-JSON JSON representation of itself.
-
Method Details
-
convertToJSON
Convert the current Java Class into a Java-JSON JSON representation of itself.- Returns:
- The Java-JSON representation of this class as a JSON object.
- Throws:
JsonException- Thrown if there was a problem during the conversion process from Java into JSON, likely due to a violation of the JSON rules from this framework.
-