Skip to content

v1.4.1

Choose a tag to compare

@ioa747 ioa747 released this 03 Jan 10:12
· 538 commits to main since this release
f1fa988

Version 1.4.1 - (2026-01-03)

🚀 Data Intelligence & JSON Manipulation

This update transforms the NetJson.Parser into a full-featured JSON management suite, allowing for complex data merging and structure inspection directly from AutoIt.

Added

  • Advanced JSON Methods (DispIds 214 - 221):

    • Merge(string jsonContent): (214) Performs a deep merge of a new JSON string into the existing structure. Uses Union strategy for arrays to prevent duplicates.

    • MergeFromFile(string filePath): (215) Efficiently reads a JSON file from disk and merges it directly into the current session.

    • GetTokenType(string path): (216) Returns the .NET/Newtonsoft type of a specific node (e.g., Object, Array, String, Integer, Boolean). Essential for dynamic data validation.

    • RemoveToken(string path): (217) Allows dynamic deletion of specific keys or array elements, providing full CRUD (Create, Read, Update, Delete) capabilities

    • Search(string query): (218) Executes a JSONPath query and returns a JSON array of all matching tokens. Enables powerful filtering and deep searching with a single call.

    • Flatten(): (219) Flattens the JSON structure into a single-level object with dot-notated paths.

    • CloneTo(string parserName): (220) Clones the current JSON data to another named parser instance.

    • FlattenToTable(string colDelim, string rowDelim): (221) Flattens the JSON structure into a table-like string with specified delimiters.

  • Web Content Extraction (DispId 200):

    • GetInnerText(): (200) Retrieves the entire visible text content (innerText) of the document. The result is returned asynchronously via the OnMessageReceived event with the Inner_Text| prefix. This enables powerful web scraping and content analysis without manual DOM parsing.

Improvements

  • Enhanced Error Handling: All new JSON and Web methods are wrapped in try-catch blocks to prevent COM crashes when dealing with malformed data or invalid DOM states.

  • Memory Efficiency: MergeFromFile utilizes local C# file streams, reducing the memory overhead for the calling AutoIt script when handling large configuration files.

  • Unified Messaging: Content extraction now follows the standardized Command|Data format, making it easier to route messages in the AutoIt event loop.