Migrate JSON generation to Jax-Rs