Changed JSON_Parse to do a single pass parse changing the original string, created JSON_ParseCopy which makes a copy of string first.
Update CString to shrink string before detaching and added a flush count which causes automatic shrinking on fifth flush.