# automationanywhere/a2019-json_parserpackage-160940 architecture

> Architecture diagram of the GitHub repository automationanywhere/a2019-json_parserpackage-160940, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-06-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/automationanywhere/a2019-json_parserpackage-160940
- Repository: https://github.com/automationanywhere/a2019-json_parserpackage-160940

## Overview

##### Project type and purpose
- This is a Java-based plugin (bot command package) for the Automation 360 (formerly Automation Anywhere) RPA platform.
- It provides JSON parsing utilities as custom bot commands: converting JSON↔Dictionary, extracting items, validating strings, and generating JSON from data.

##### File structure
- Top-level build files:
- build.gradle, settings.gradle, gradlew/gradlew.bat, gradle/… (Gradle build system)
- Packaging output:
- Libraries:
- libs/*.jar (bot-api, command-annotations, command-processor, security, i18n, log4j, etc.)
- Source code:
- src/main/java/com/automationanywhere/botcommand/sk/… (DictionarytoJSON, JSONtoDictionary, GetItem, ValidateJSON, JSONUtils)

##### README
- Core features:
- Convert REST call output to dictionary
- Provide JSON data for REST or HTTP calls
- Support primitive types, lists, dictionaries
- Validate JSON strings

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Build & Packaging
    subgraph "Build & Packaging"
        GRADLE["Gradle Build System"]:::build
        PLUGINJAR["Plugin JAR\n(JSON Parser Plugin)"]:::build
        RESOURCES["Resources\n(icons, locales, package.template)"]:::build
    end

    GRADLE -- "compile & package" --> PLUGINJAR
    PLUGINJAR -- "includes resources" --> RESOURCES

    %% Plugin Components
    subgraph "Plugin Components"
        subgraph "Commands"
            D2J["DictionarytoJSON"]:::component
            J2D["JSONtoDictionary"]:::component
            GETI["GetItem"]:::component
            VJSON["ValidateJSON"]:::component
        end
        UTIL["JSONUtils"]:::util
        RES_BUNDLE["i18n Messages"]:::external
        ICONS["Icons"]:::external
        TPL["Package Template"]:::external
    end

    %% Runtime Environment
    subgraph "Runtime Environment"
        BOTRT["Automation 360\nBot Runtime"]:::runtime
        PLDR["Plugin Loader"]:::runtime
        CP["Command Processor"]:::runtime
        SEC["Security Module"]:::external
        LOG["Log4j 2.x"]:::external
        I18NAPI["i18n API"]:::external
    end

    %% Build to Runtime
    PLUGINJAR -- "deploy → load" --> BOTRT
    BOTRT --> PLDR
    PLDR --> PLUGINJAR

    %% Command Invocation Flow
    BOTRT --> CP
    CP --> D2J
    CP --> J2D
    CP --> GETI
    CP --> VJSON

    %% Command Interactions
    D2J --> UTIL
    J2D --> UTIL
    GETI --> UTIL
    VJSON --> UTIL

    D2J --> LOG
    J2D --> LOG
    GETI --> LOG
    VJSON --> LOG

    D2J --> I18NAPI
    J2D --> I18NAPI
    GETI --> I18NAPI
    VJSON --> I18NAPI

    D2J --> SEC
    J2D --> SEC
    GETI --> SEC
    VJSON --> SEC

    D2J --> RES_BUNDLE
    J2D --> RES_BUNDLE
    GETI --> RES_BUNDLE
    VJSON --> RES_BUNDLE

    D2J --> ICONS
    J2D --> ICONS
    GETI --> ICONS
    VJSON --> ICONS

    D2J --> TPL
    J2D --> TPL
    GETI --> TPL
    VJSON --> TPL

    %% Click Events
    click GRADLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/build.gradle"
    click GRADLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/settings.gradle"
    click GRADLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/tree/main/gradlew"
    click GRADLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/gradlew.bat"
    click GRADLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/tree/main/gradle/wrapper/"
    click RESOURCES "https://github.com/automationanywhere/a2019-json_parserpackage-160940/tree/main/bin/main/"
    click D2J "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/java/com/automationanywhere/botcommand/sk/DictionarytoJSON.java"
    click J2D "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/java/com/automationanywhere/botcommand/sk/JSONtoDictionary.java"
    click GETI "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/java/com/automationanywhere/botcommand/sk/GetItem.java"
    click VJSON "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/java/com/automationanywhere/botcommand/sk/ValidateJSON.java"
    click UTIL "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/java/com/automationanywhere/botcommand/sk/JSONUtils.java"
    click RES_BUNDLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/resources/com/automationanywhere/botcommand/demo/messages.properties"
    click RES_BUNDLE "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/resources/com/automationanywhere/botcommand/demo/messages_ja_JP.properties"
    click ICONS "https://github.com/automationanywhere/a2019-json_parserpackage-160940/tree/main/src/main/resources/icons/"
    click TPL "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/src/main/resources/package.template"
    click RESOURCES "https://github.com/automationanywhere/a2019-json_parserpackage-160940/tree/main/bin/main/icons/"
    click RESOURCES "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/bin/main/locales/en_US.json"
    click RESOURCES "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/bin/main/package.template"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/bot-api-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/command-annotations-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/command-processor-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/common-security-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/i18n-api-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/log4j-*.jar"
    click PLUGINJAR "https://github.com/automationanywhere/a2019-json_parserpackage-160940/blob/main/libs/shadow-*.jar"

    %% Styles
    classDef build fill:#E8F0FE,stroke:#1A73E8,color:#1A73E8;
    classDef runtime fill:#E6F4EA,stroke:#188038,color:#188038;
    classDef component fill:#FEF7E0,stroke:#F9AB00,color:#F9AB00;
    classDef util fill:#E8F0FE,stroke:#1A73E8,color:#1A73E8;
    classDef external fill:#F1F3F4,stroke:#5F6368,color:#5F6368;
```
