pyPRQL has a to_json method, but prql-js doesn't. Moreover, if #775 is merged, we can add support to from_json. FYI, code is ready