liferoad commented on code in PR #30283:
URL: https://github.com/apache/beam/pull/30283#discussion_r1485637874
##########
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/FnHarness.java:
##########
@@ -107,6 +111,29 @@ private static Endpoints.ApiServiceDescriptor
getApiServiceDescriptor(String des
return apiServiceDescriptorBuilder.build();
}
+ public static String removeNestedKey(String jsonString, String keyToRemove)
throws Exception {
Review Comment:
Not sure when we can put this json util function. Any suggestion is welcome.
##########
sdks/java/harness/src/main/java/org/apache/beam/fn/harness/FnHarness.java:
##########
@@ -107,6 +111,29 @@ private static Endpoints.ApiServiceDescriptor
getApiServiceDescriptor(String des
return apiServiceDescriptorBuilder.build();
}
+ public static String removeNestedKey(String jsonString, String keyToRemove)
throws Exception {
Review Comment:
Not sure where we can put this json util function. Any suggestion is welcome.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]