Class JsonIntent

java.lang.Object
org.iam.intent.JsonIntent

public class JsonIntent extends Object
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 Details

    • JsonIntent

      public JsonIntent(String inputFilePath, HashSet<MCPIntent> findingsSet)
      Constructs a JsonIntent object.
      Parameters:
      inputFilePath - the path of the input file
      findingsSet - a set of MCPIntent findings
  • Method Details

    • printToFile

      public static void printToFile(JsonIntent jsonFindings, Path outputFilePath)
      Writes the JsonIntent object to a JSON file.
      Parameters:
      jsonFindings - the JsonIntent object to write
      outputFilePath - the output file path