Class ConfigJsonMapper

java.lang.Object
ai.attackframework.tools.burp.utils.config.ConfigJsonMapper

public final class ConfigJsonMapper extends Object
Mapper between the typed ConfigState.State and the JSON produced/parsed by Json. Keeps JSON shape 100% compatible by delegating to Json.
  • Method Details

    • build

      public static String build(ConfigState.State state)
      Build JSON from a typed state using Json under the hood.
    • parse

      public static ConfigState.State parse(String json) throws IOException
      Parses config JSON into a normalized typed state.

      Legacy payloads that predate explicit exporter options are normalized to include the exporter source so Exporter-index export remains enabled by default.

      Parameters:
      json - raw config JSON
      Returns:
      normalized typed state
      Throws:
      IOException - when the JSON cannot be parsed