diff --git a/jmh/pom.xml b/jmh/pom.xml
index b7d6a1b..e9b6fd9 100644
--- a/jmh/pom.xml
+++ b/jmh/pom.xml
@@ -5,12 +5,12 @@
nl.sander
jsonthingy-pom
- 1.5
+ 1.6
JsonToy-JMH
jsonthingy-jmhtests
- 1.5
+ 1.6
jar
diff --git a/lib/pom.xml b/lib/pom.xml
index 73c5d71..1aa7131 100644
--- a/lib/pom.xml
+++ b/lib/pom.xml
@@ -5,12 +5,12 @@
nl.sander
jsonthingy-pom
- 1.5
+ 1.6
JsonToy
jsonthingy
- 1.5
+ 1.6
jar
diff --git a/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java b/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java
index 59456f4..96ae3a4 100644
--- a/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java
+++ b/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java
@@ -7,8 +7,7 @@ import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.math.BigDecimal;
import java.math.BigInteger;
-import java.time.LocalDate;
-import java.time.LocalDateTime;
+import java.time.temporal.Temporal;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
@@ -82,7 +81,7 @@ public class Mapper {
b.append("\"");
Mapper.escape(b, (Character) value);
b.append("\"");
- } else if (type == UUID.class || type == LocalDate.class || type == LocalDateTime.class || type.isEnum()) {
+ } else if (type == UUID.class || value instanceof Temporal || type.isEnum()) {
b.append("\"");
b.append(value.toString());
b.append("\"");
diff --git a/pom.xml b/pom.xml
index 0d7df72..0f58cee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
JsonToy
nl.sander
jsonthingy-pom
- 1.5
+ 1.6
pom