Fix json for text spans.