Skip to content

Commit

Permalink
Fixes JSONFlattener usage in FieldReadCallBack class
Browse files Browse the repository at this point in the history
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
  • Loading branch information
DarshitChanpura committed Dec 5, 2023
1 parent 7100981 commit 4263ae1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void binaryFieldRead(final FieldInfo fieldInfo, byte[] fieldValue) {
fieldValue = Utils.jsonMapToByteArray(filteredSource);
}

Map<String, Object> filteredSource = new JsonFlattener(new String(fieldValue, StandardCharsets.UTF_8)).flattenAsMap();
Map<String, Object> filteredSource = JsonFlattener.flattenAsMap(new String(fieldValue, StandardCharsets.UTF_8));
for (String k : filteredSource.keySet()) {
if (!recordField(k, filteredSource.get(k) instanceof String)) {
continue;
Expand Down

0 comments on commit 4263ae1

Please sign in to comment.