Changed JSON string append method to

optimize performance.