JSON endpoint; all tests passing