Revised toJsonString function to not use parser.  It's taking too much CPU.