@Override
            public void encode(Object obj, JsonStream stream) throws IOException {
                stream.writeVal(sdf.get().format(obj));
            }
there is no official way to encode/decode datetime, this is just an option for you
src/main/java/com/jsoniter/extra/JdkDatetimeSupport.java