Implement /api/submit_text.json