You can have a look at: com.avaje.ebean.config.ScalarTypeConverter
or alternatively com.avaje.ebeaninternal.server.type.ScalarTypeBaseVarchar
and perhaps as some examples to work off...
com.avaje.ebeaninternal.server.type.ScalarTypeUUID com.avaje.ebeaninternal.server.type.ScalarTypeClob
The first question is whether you are storing the JSON as Clob or Varchar (or perhaps you need 2 different options).
Update: As of Ebean ORM version 4.6.3 there is now built in support for storing both
JsonNode
andMap<String,Object>
into various database types (Clob,Varchar,Blob plus Postgres JSON and JSONB data types).Refer to: