diff --git a/jmh/pom.xml b/jmh/pom.xml index dce6aa5..ff1c1a8 100644 --- a/jmh/pom.xml +++ b/jmh/pom.xml @@ -5,12 +5,12 @@ nl.sander jsonthingy-pom - 1.2 + 1.3 JsonToy-JMH jsonthingy-jmhtests - 1.2 + 1.3 jar diff --git a/lib/pom.xml b/lib/pom.xml index b61f595..8277ea3 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -5,12 +5,12 @@ nl.sander jsonthingy-pom - 1.2 + 1.3 JsonToy jsonthingy - 1.2 + 1.3 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 130ed97..2d53534 100644 --- a/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java +++ b/lib/src/main/java/nl/sanderhautvast/json/ser/Mapper.java @@ -80,12 +80,15 @@ public class Mapper { b.append("\""); Mapper.escape(b, (Character) value); b.append("\""); + } else if (type == UUID.class) { + b.append("\""); + b.append(value.toString()); + b.append("\""); } else if (type == Boolean.class || type == Integer.class || type == Long.class || type == Float.class || type == Double.class - || type == UUID.class || type == Byte.class || type == Short.class || type == BigInteger.class diff --git a/pom.xml b/pom.xml index 73ef914..d07d51c 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ JsonToy nl.sander jsonthingy-pom - 1.2 + 1.3 pom