Skip to content

Commit 652d366

Browse files
author
Mark
committed
changed json parsing of vpack types not known in json
1 parent 8cdd25b commit 652d366

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/arangodb/velocypack/VPackParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public class VPackParser {
4747
private static final char FIELD = ':';
4848
private static final char SEPARATOR = ',';
4949
private static final String NULL = "null";
50+
private static final String NON_REPRESENTABLE_TYPE = "(non-representable type)";
5051
private final Map<ValueType, VPackJsonDeserializer> deserializers;
5152
private final Map<String, Map<ValueType, VPackJsonDeserializer>> deserializersByName;
5253

@@ -124,7 +125,7 @@ private void parse(
124125
} else if (value.isNull()) {
125126
json.append(NULL);
126127
} else {
127-
json.append(NULL);
128+
json.append(JSONValue.toJSONString(NON_REPRESENTABLE_TYPE));
128129
}
129130
}
130131
}

0 commit comments

Comments
 (0)