mirror of
https://github.com/logos-storage/nim-json-rpc.git
synced 2026-01-04 06:33:10 +00:00
`news` has several resource leaks and other security issues - replaced by `nim-websock` which is actively maintained.
13 lines
278 B
Nim
13 lines
278 B
Nim
import
|
|
../json_rpc/router
|
|
|
|
template `==`*(a, b: distinct (string|StringOfJson)): bool =
|
|
string(a) == string(b)
|
|
|
|
template `==`*(a: StringOfJson, b: JsonNode): bool =
|
|
parseJson(string a) == b
|
|
|
|
template `==`*(a: JsonNode, b: StringOfJson): bool =
|
|
a == parseJson(string b)
|
|
|