Class JsonUtil

java.lang.Object
org.eclipse.scanning.event.util.JsonUtil

public class JsonUtil extends Object
  • Constructor Details

    • JsonUtil

      public JsonUtil()
  • Method Details

    • removeProperties

      public static String removeProperties(String json, List<String> properties)
      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: