added replace method to fix json quotes