Text conversion utilities for JSON