Don't construct a text object just so you can json-parse a Cstring.
changes based on code review