diff --git a/schemas/jsonMessages.prs b/schemas/jsonMessages.prs new file mode 100644 index 0000000..60d7239 --- /dev/null +++ b/schemas/jsonMessages.prs @@ -0,0 +1,19 @@ +version 1 . + +JSON = +/ @string string +/ @integer int +/ @double double +/ @boolean bool +/ @null =null +/ @array [JSON ...] +/ @object { symbol: JSON ...:... } . + +; Messages that might be exchanged over a point-to-point medium such as a TCP or UNIX socket. +Message = SendJSON / RecvJSON . + +; A message destined for a remote endpoint. +SendJSON = . + +; A message originating from a remote endpoint. +RecvJSON = .