enforce json format in #render_for_api