Make sure everything follows the JSON API
The JSON API is documented on the website, implemented in C++, and implemented in JS.
We should make sure that all of these places are compatible.
Also, the new JSON API is not compatible with the one @MikeZ implemented in Wekinator. So, that needs to be updated (this is probably a separate issue).