Similar to #1241 but provide a JSON API, this will depend on figuring out a solution to #284.
Similar to #1241 but provide a JSON API, this will depend on figuring out a solution to #284.