We will have to handle single quote as well. Better to look for inbuilt functionality for json escaping