Updated JSON processing to escape HTML in strings