Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Fixes from dry run feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Anand Subramanian committed Sep 10, 2022
1 parent 8549150 commit d81f391
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
17 changes: 9 additions & 8 deletions samples/logFilter/Playground/inputs/payload.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
[{
"name": "Apex",
"isSpecial": false
},
{
"name": "Turtles",
"isSpecial": true
}
[
{
"name": "Apex",
"isSpecial": false
},
{
"name": "Turtles",
"isSpecial": true
}
]
2 changes: 1 addition & 1 deletion scripts/apex/CsvToJson.apex
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ DataWeave.Script dwscript = DataWeave.Script.createScript(scriptName);

DataWeave.Result result = dwscript.execute(new Map<String, Object>{'payload' => csvPayload});
string jsonResult = result.getValueAsString();
System.debug(jsonResult);
System.debug(jsonResult);
2 changes: 1 addition & 1 deletion scripts/apex/DataweaveDebugLog.apex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
String jsonPayload = '[{\r\n\t\t\"name\": \"Apex\",\r\n\t\t\"isSpecial\": false\r\n\t},\r\n\t{\r\n\t\t\"name\": \"Turtles\",\r\n\t\t\"isSpecial\": true\r\n\t}\r\n]';
String jsonPayload = '[{\"name\": \"Apex\",\"isSpecial\": false},{\"name\": \"Turtles\",\"isSpecial\": true}]';
string scriptName = 'logFilter';
DataWeave.Script dwscript = DataWeave.Script.createScript(scriptName);
DataWeave.Result result = dwscript.execute(new Map<String, Object>{'payload' => jsonPayload});
Expand Down

0 comments on commit d81f391

Please sign in to comment.