mirror of
https://github.com/status-im/nim-json-rpc.git
synced 2025-02-25 18:55:12 +00:00
13 lines
284 B
Nim
13 lines
284 B
Nim
import
|
|
json, ../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)
|
|
|