java.lang.Object
org.vaadin.addons.velocitycomponent.Json

public class Json extends Object
A trivial helper class for JS components to render Java DTOs as JSON. Exposed to Velocity templates via VelocityComponentDecorator.
  • Constructor Details

    • Json

      public Json()
  • Method Details

    • of

      public static String of(Object o)
      Parameters:
      o - the object to render as JSON
      Returns:
      the JSON representation of the object