Package org.iam.intent
Class JsonIntent
java.lang.Object
org.iam.intent.JsonIntent
Converts a set of MCPIntent objects into a JSON structure for output.
Ignores keys with null or empty values during serialization. Provides methods for formatting, processing, and writing findings to a JSON file.
- Since:
- 2025-02-28
- Author:
-
Constructor Summary
ConstructorsConstructorDescriptionJsonIntent(String inputFilePath, HashSet<MCPIntent> findingsSet) Constructs a JsonIntent object. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidprintToFile(JsonIntent jsonFindings, Path outputFilePath) Writes the JsonIntent object to a JSON file.
-
Constructor Details
-
JsonIntent
Constructs a JsonIntent object.- Parameters:
inputFilePath- the path of the input filefindingsSet- a set of MCPIntent findings
-
-
Method Details
-
printToFile
Writes the JsonIntent object to a JSON file.- Parameters:
jsonFindings- the JsonIntent object to writeoutputFilePath- the output file path
-