store_json: Escape special characters in strings.