summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pure/json.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim
index 508e564c5..a45900f29 100644
--- a/lib/pure/json.nim
+++ b/lib/pure/json.nim
@@ -621,9 +621,13 @@ proc `%`*(elements: openArray[PJsonNode]): PJsonNode =
 
 proc `==`* (a,b: PJsonNode): bool =
   ## Check two nodes for equality
-  if a.kind != b.kind: false
+  if a.isNil:
+    if b.isNil: return true
+    return false
+  elif b.isNil or a.kind != b.kind: 
+    return false
   else:
-    case a.kind
+    return case a.kind
     of JString:
       a.str == b.str
     of JInt:
he rest of the code' href='/akspecs/ranger/commit/ranger/applications.py?id=4f1a6e67b5a29f30bb3c5bc0e26938c8a6d3ff90'>4f1a6e67 ^
4e9450f9 ^

a35042fb ^
23236d0c ^
d46a05a8 ^

23236d0c ^
cc952d63 ^
d46a05a8 ^
4be8b401 ^
63f22638 ^

4be8b401 ^








4e9450f9 ^

4be8b401 ^
4e9450f9 ^
4be8b401 ^









ea87d005 ^
4be8b401 ^






d46a05a8 ^























63f22638 ^



cc952d63 ^
728fb838 ^
cc952d63 ^



ea87d005 ^
4f1a6e67 ^







cc952d63 ^

728fb838 ^
cc952d63 ^


728fb838 ^
23236d0c ^

cc952d63 ^
4be8b401 ^
23236d0c ^
4be8b401 ^






d46a05a8 ^

4f1a6e67 ^
d46a05a8 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131