Output JSON data for text layers. Closes #1