This commit is contained in:
Dominik Picheta
2018-08-21 23:18:17 +01:00
committed by Andreas Rumpf
parent e66d9c9381
commit 3e7aaa7087

View File

@@ -256,7 +256,6 @@ proc add*(obj: JsonNode, key: string, val: JsonNode) =
proc `%`*(s: string): JsonNode =
## Generic constructor for JSON data. Creates a new `JString JsonNode`.
new(result)
if s.isNil: return
result.kind = JString
result.str = s