The Realm Object Server can be queried via GraphQL and will return JSON representations of the Realm data.  More details are provided here.  Depending on your technology stack, you may also use our server-side .Net and Node.js bindings.