Interface SimpleMapper


public interface SimpleMapper
A mapper for mapping to basic Java types.

This supports the basic Java types of String, Boolean, Integer, Long, Double and Maps and List of these.

For full support with more types and binding to custom types use avaje-jsonb instead.

Example



   static final SimpleMapper simpleMapper = SimpleMapper.builder().build();

   Map<String, Long> map = new LinkedHashMap<>();
   map.put("one", 45L);
   map.put("two", 93L);

   String asJson = simpleMapper.toJson(map);