Class DocumentPropertyJsonWriter

  • All Implemented Interfaces:
    Marshaller<Property>, Writer<Property>

    @Setup(mode=SINGLETON,
           priority=2000)
    public class DocumentPropertyJsonWriter
    extends AbstractJsonWriter<Property>
    Convert Property to Json.

    Format is:

     "stringPropertyValue"  <-- for string property, each property may be fetched if a resolver is associated with that property and if a parameter fetch.document=propXPath is present, in this case, an object will be marshalled as value
     or
     true|false  <- for boolean property
     or
     123  <- for int property
     ...
     {  <- for complex property
       "subProperty": ...,
        ...
     },
     [ ... ] <- for list property
     }
     
    Since:
    7.2