Toggle navigation
Home
▼ Details
Products and pricing
Chart gallery
User stories
Text analytics
CDC NAMCS Library
Blog
Tutorials
Contact
Sign in
Post Editor
← All help posts
View post
Save
You can replace characters or entire response values by using the "replace" attribute in the JSON editor. ## Example This is particularly useful for instances where you want to replace a certain character, word or phrase throughout all response values. In the example below a � character appears throughout some of the response values. Sometimes when datasets are imported into Protobi certain characters can appear this way. <img src="/uploads/upload/image/5200/direct/1584982327282-1584982327282.png" alt="Protobi interface showing Q24 element with response values containing corrupted � characters. Table displays values like 'Top �', '2nd �', 'Middle �', and 'Bottom �' with their corresponding counts and percentages." style="text-align: center; width: 460px;" class="fr-fic fr-dib"> You can add the "replace" attribute in the [JSON editor](https://help.protobi.com/editaccess/edit-json#JSON%20editor-0) to insert a different character at every instance of "�". This attribute can also perform a similar function as the Recode... dialog. You can use the "replace" attribute to replace entire values like changing "Whatever they want" to "anything". ``` "replace" : { "�" : "/", "Whatever they want" : "anything" }, ``` The � character throughout **Q24** has been replaced with "/" and the response value "Whatever they want" has been replaced as well. <img src="/uploads/upload/image/5200/direct/1584984096348-1584984096348.png" alt="Protobi interface showing Q24 element after applying replace attribute. Response values now display correctly with '/' character replacing corrupted �, showing 'Top /', '2nd /', 'Middle /', etc. The value 'Whatever they want' has been replaced with 'anything'." style="text-align: center; width: 460px;" class="fr-fic fr-dib"> ## Limitations This method works to replace underlying values. Using the "replace" attribute will not work to replace words or characters in the element's [format](/edit-access/formatting).
Publishing
Date
Status
Published
Draft
Slug
edit
Content
Thumbnail
Categories
Manage
New to Protobi?
Charts
Making Changes
Intermediate topics for editors
Frequently Asked Questions
SERMO Topics
Tutorial Pages
Internal Docs
Data Processing
Videos
Obsolete
GSG Admin
SERMO Admin
GSG Topics
How to...
Basics for viewers
Basics for editors
For project admins
Advanced topics
Assessments
Articles (in-progress)
New and updated articles
Process data in Protobi
superseded
Text open-end questions
Troubleshooting
Tracking studies
Organizing the view
API References
Tools
AI Database
Checking AI...
Convert to MD
Danger zone
Delete