Class ModelAwareJSONStringer


  • public class ModelAwareJSONStringer
    extends com.github.openjson.JSONStringer
    Subclass of JSONStringer, that dereferences models (instanceof IModel) before rendering to JSON. Useful when using JSONObject inside complex nested structures of ChartOptions, the value can be in model to allow dynamic creation or lazy loading.
    Author:
    Dieter Tremel
    • Constructor Detail

      • ModelAwareJSONStringer

        public ModelAwareJSONStringer()
    • Method Detail

      • value

        public com.github.openjson.JSONStringer value​(Object value)
                                               throws com.github.openjson.JSONException
        Overrides:
        value in class com.github.openjson.JSONStringer
        Throws:
        com.github.openjson.JSONException