by epoberezkin · 10y ago · 0 comments
I've implemented something similar with my own projects in the past and I think others have and ultimately will as well. "What problem causes us all to ultimately implement something like JSONScript or JSON RPC?"
I think there's two problems and I think JSONScript went a bit too far/got too specific as to how to solve them:
1) How to specify (multiple) destinations when delivering API requests and their order of execution.
2) How to execute actions safely despite potentially dangerous payloads.
I suggest removing the "path" part as it can easily be included in the top level of the object (e.g. {"someapp: destination": "payload here"}. I also suggest removing the "get" and "put" nomenclature. That's so old fashioned and synchronous :) . Shouldn't such things be determined by the destination functions?