Skip to content

Commit

Permalink
INS-49047: Adding JSON/Leef parser
Browse files Browse the repository at this point in the history
[UC Editor] adding JSON/Leef custom parser
  • Loading branch information
taees-eimouri committed Feb 11, 2025
1 parent 350417a commit 4a67134
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ public boolean isPayloadValid(String payload) {
if (payload == null)
return false;

extractedProperties = util.getMap(payload);
extractedProperties = parsePayload(payload);
return extractedProperties != null && !extractedProperties.isEmpty();
}

public Map<String, String> parsePayload(String payload) {
return util.getMap(payload);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public boolean isPayloadValid(String payload) {
* @param payload The structured event payload
* @return A Map containing String values of all 'properties' within the event
*/
Map<String, String> parsePayload(String payload) {
public Map<String, String> parsePayload(String payload) {
Map<String, String> map = new HashMap<>();
Index i = new Index();
// Look for the LEEF header, if it isn't present, then the payload we were
Expand Down

0 comments on commit 4a67134

Please sign in to comment.