Capitalised enum value names in JSON module.
This commit is contained in:
parent
2dba171acc
commit
69a5954807
1 changed files with 7 additions and 7 deletions
|
|
@ -642,19 +642,19 @@ proc `==`* (a,b: PJsonNode): bool =
|
||||||
proc hash* (n:PJsonNode): THash =
|
proc hash* (n:PJsonNode): THash =
|
||||||
## Compute the hash for a JSON node
|
## Compute the hash for a JSON node
|
||||||
case n.kind
|
case n.kind
|
||||||
of jArray:
|
of JArray:
|
||||||
result = hash(n.elems)
|
result = hash(n.elems)
|
||||||
of jObject:
|
of JObject:
|
||||||
result = hash(n.fields)
|
result = hash(n.fields)
|
||||||
of jInt:
|
of JInt:
|
||||||
result = hash(n.num)
|
result = hash(n.num)
|
||||||
of jFloat:
|
of JFloat:
|
||||||
result = hash(n.fnum)
|
result = hash(n.fnum)
|
||||||
of jBool:
|
of JBool:
|
||||||
result = hash(n.bval.int)
|
result = hash(n.bval.int)
|
||||||
of jString:
|
of JString:
|
||||||
result = hash(n.str)
|
result = hash(n.str)
|
||||||
of jNull:
|
of JNull:
|
||||||
result = hash(0)
|
result = hash(0)
|
||||||
|
|
||||||
proc len*(n: PJsonNode): int =
|
proc len*(n: PJsonNode): int =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue