Class ConfigJsonMapper
java.lang.Object
ai.attackframework.tools.burp.utils.config.ConfigJsonMapper
Mapper between the typed
ConfigState.State and the JSON produced/parsed
by Json. Keeps JSON shape 100% compatible by delegating to Json.-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringbuild(ConfigState.State state) Build JSON from a typed state usingJsonunder the hood.static ConfigState.StateParses config JSON into a normalized typed state.
-
Method Details
-
build
Build JSON from a typed state usingJsonunder the hood. -
parse
Parses config JSON into a normalized typed state.Legacy payloads that predate explicit exporter options are normalized to include the
exportersource 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
-