User Story
Correct the email address of the following JSON.
JSON
{
"name": "John Doe",
"email": "johndoe@example.com"
}
Solution
StaticResource sr = [select id, body from StaticResource Where Name = 'jsonsample'];
String text = sr.body.toString();
String newEmail = 'newemail@example.com';
String updatedText = text.replace('johndoe@example.com', newEmail);
Video
Video does not exists.