Add preliminary support for read-only JSON API