REST publish as JSON