4 ms·
Thanks for the comparison. JSON-RPC allows simple batching but it doesn't allow any server side logic between calls. Individual calls to external instructions
by epoberezkin 10y ago
Thanks for the comparison.
JSON-RPC allows simple batching but it doesn't allow any server side logic between calls. Individual calls to external instructions in JSONScript are indeed similar.
The full syntax can be used if you need to evaluate some of the fields, it's also easier to parse. Short syntax is implemented as a macro - it's expanded to full syntax before evolution. Given that it in most cases short syntax is better I was going to hide full syntax a bit...
- epoberezkin 10y agoRe '$', there is no expectation on the location of the script instructions in the object structure, unlike JSON RPC. So it is used to differentiate instructions from simple data structures that can be part of the script.