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 Summary

    Modifier and Type
    Method
    Description
    static com.google.gson.JsonArray
    This method is a generalizable implementation for converting an iterable of objects that extends this class using toJsonObject() to a JsonArray
    com.google.gson.JsonObject
    This method is a generalizable definition for converting an object of any type to a JsonObject
    static com.google.gson.JsonArray
     
  • Method Details

    • toJsonObject

      com.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
    • toJsonArray

      static com.google.gson.JsonArray toJsonArray(Iterable<? extends JsonSerializable> list)
      This method is a generalizable implementation for converting an iterable of objects that extends this class using toJsonObject() to a JsonArray
      Parameters:
      list -
      Returns:
    • toShortJsonArray

      static com.google.gson.JsonArray toShortJsonArray(Iterable<Flow> list)