Package org.eclipse.scanning.event.util
Class JsonUtil
java.lang.Object
org.eclipse.scanning.event.util.JsonUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringremoveProperties(String json, List<String> properties) Attempts to remove properties of the parent if the subscriber has been told that they are not of interest.
-
Constructor Details
-
JsonUtil
public JsonUtil()
-
-
Method Details
-
removeProperties
Attempts to remove properties of the parent if the subscriber has been told that they are not of interest. For instance if the 'detectors' property of a ScanRequest in an ScanBean is not required, it can be removed from the json and avoid any objects it needs to be serialized being an issue. For instance, there is no guarantee that the required detector models would be in the classpath. If they are not of interest to the subscriber then they may be removed.- Parameters:
json-all- properties in all objects with these names will be removed.- Returns:
-