bugfix uuids need a quote

This commit is contained in:
Shautvast 2023-06-25 14:58:54 +02:00
parent 6417930897
commit 4522f36e67
4 changed files with 9 additions and 6 deletions

View file

@ -5,12 +5,12 @@
<parent>
<groupId>nl.sander</groupId>
<artifactId>jsonthingy-pom</artifactId>
<version>1.2</version>
<version>1.3</version>
</parent>
<name>JsonToy-JMH</name>
<artifactId>jsonthingy-jmhtests</artifactId>
<version>1.2</version>
<version>1.3</version>
<packaging>jar</packaging>
<properties>

View file

@ -5,12 +5,12 @@
<parent>
<groupId>nl.sander</groupId>
<artifactId>jsonthingy-pom</artifactId>
<version>1.2</version>
<version>1.3</version>
</parent>
<name>JsonToy</name>
<artifactId>jsonthingy</artifactId>
<version>1.2</version>
<version>1.3</version>
<packaging>jar</packaging>
<properties>

View file

@ -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

View file

@ -5,7 +5,7 @@
<name>JsonToy</name>
<groupId>nl.sander</groupId>
<artifactId>jsonthingy-pom</artifactId>
<version>1.2</version>
<version>1.3</version>
<packaging>pom</packaging>
<modules>