Interface JsonGenerator

  • All Known Implementing Classes:
    JsonGeneratorImpl

    public interface JsonGenerator
    Version:
    $Id: JsonGenerator.java 34417 2009-07-23 14:42:56Z dkatayev $
    Author:
    Andrey Parfonov
    • Method Detail

      • createJsonObject

        JsonValue createJsonObject​(Object bean)
                            throws JsonException
        Get HashMap representation for Java Bean object.
        Parameters:
        bean - the source object.
        Returns:
        the HashMap which represented give JavaBean.
        Throws:
        JsonException - if Object can't be transformed in JSON representation.