Interface JsonSerializable
- All Known Subinterfaces:
- DependencyGraphI<V,- E> 
- All Known Implementing Classes:
- AbstractAntiPattern,- AbstractAR,- Annotation,- AR1,- AR20,- AR21,- AR22,- AR23,- AR24,- AR3,- AR4,- AR6,- AR7,- ConfigFile,- CyclicDependency,- Delta,- Endpoint,- Field,- Flow,- GreedyMicroservice,- HubLikeMicroservice,- JClass,- Method,- MethodCall,- MethodDependencyGraph,- Microservice,- MicroserviceSystem,- NoApiGateway,- Node,- NoHealthcheck,- Parameter,- ProjectFile,- RestCall,- ServiceChain,- ServiceDependencyGraph,- SystemChange,- WobblyServiceInteraction,- WrongCuts
public interface JsonSerializable
Interface for classes that can be serialized to JSON object
- 
Method SummaryModifier and TypeMethodDescriptionstatic com.google.gson.JsonArraytoJsonArray(Iterable<? extends JsonSerializable> list) This method is a generalizable implementation for converting an iterable of objects that extends this class usingtoJsonObject()to a JsonArraycom.google.gson.JsonObjectThis method is a generalizable definition for converting an object of any type to a JsonObjectstatic com.google.gson.JsonArraytoShortJsonArray(Iterable<Flow> list) 
- 
Method Details- 
toJsonObjectcom.google.gson.JsonObject toJsonObject()This method is a generalizable definition for converting an object of any type to a JsonObject- Returns:
- a JsonObject representing this
 
- 
toJsonArrayThis method is a generalizable implementation for converting an iterable of objects that extends this class usingtoJsonObject()to a JsonArray- Parameters:
- list-
- Returns:
 
- 
toShortJsonArray
 
-