WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new

Mastering Data Manipulation: JSONata Plugin for Workload Automation

8/2/2023

0 Comments

 
Picture
​Today's data-driven society places a premium on the capacity to extract, modify, and manage JSON data, which is essential for effective corporate operations. The JSONata plugin can help users in this situation by enabling JSON querying and manipulation within Workload Automation workflows.
​Exploring JSONata 
Let's quickly go over JSONata's definition before introducing the plug-in.
JSONata is a potent query and transformation language created especially for using JSON data. JSONata is a flexible and effective tool for extracting, manipulating, and transforming data contained in JSON format because of its clear syntax and expressive features. JSONata makes it easier to query and transform the data, regardless of whether you're working with intricate nested structures or enormous JSON databases. This frees you up to concentrate on drawing insightful conclusions.
Suppose we have the following sample JSON:
Picture

Using JSONata, we can perform various queries to extract the desired information. For example, we can use the following query to get the names of employees:
$.employees.name
This query have to return an array with the names of employees:
["John", "Emily", "Michael"]
We can also filter employees based on age using a query like this:
$.employees[age > 30]
This query have to return an array of objects that include only employees above the age of 30:
[
  {
    "name": "John",
    "age": 32,
    "department": "IT"
  },
  {
    "name": "Michael",
    "age": 45,
    "department": "Finance"
  }
]
To further analyze the data, let's calculate the average age of employees. We can achieve this using an aggregated query:
$average(employees.(age))
This query calculates the average age based on the age property of each employee and returns the result: 35.
These illustrations show the potential of JSONata queries for collecting and altering data. You can easily handle and gain insights from complex JSON structures thanks to JSONata's flexibility and expressiveness.
 
Check out the JSONata documentation if you're eager to investigate more JSONata queries and maximise the value of your data. In order to help you grasp the art of JSON data transformation, it provides comprehensive examples, syntactic explanations, and helpful hints.
Additionally, you can use the JSONata exerciser, an interactive programme that offers practical training. It's a terrific method to improve your knowledge of JSONata and your skills with data transformation.
​
Simplify Data Manipulation with the JSONata Plugin 
The JSONata Plugin is a powerful tool that brings the abilities of JSONata, a versatile query and transformation language for JSON data, to your Workload Automation environment. This plugin extends beyond JSON data and supports querying and conversion of XML and YAML data as well.
The JSONata Plugin makes it simple to carry out intricate data manipulations and extract the data you require from your documents. A result is automatically saved as an output property for the task for each query that is run using the plugin. This enables for seamless data flow and task integration by allowing the outcome of one query to be used as the input for future jobs in a jobstream.
The JSONata Plugin is notable for its handling of XML and YAML documents. When XML or YAML data is encountered, the plugin automatically converts it to JSON format, enabling you to use JSONata queries with no further work. Due to its flexibility, JSONata may now be used to its most advantage across a variety of data formats, eliminating the need for manual conversion.
Additionally, the JSONata Plugin provides the ease of variable passing, enabling you to supply the input document from a previous job, like a RESTful service. As a result, it's simple to chain jobs together, passing the results of one job as the input for queries in other processes that use JSONata. You may easily construct complicated data processing pipelines thanks to its dynamic workflow connection.
The JSONata Plugin offers a quick and effective method regardless of whether you're carrying out straightforward data filtering or intricate modifications. You can harness the power of JSONata and streamline your data manipulation chores with Workload Automation, providing quicker and more precise data processing throughout your automation workflows.
 
The JSONata Plugin can be found in the category of the WorkLoad Designer catalogue devoted to tools for data manipulation and transformation. See where to get the JSONata Plugin for easy integration into your automation workflows in the image below.
Picture
Action
​
You must specify in the Action tab.
  • The document formats.
  • The input document, whose format should match the one provided above.
  • One or more queries to be performed on the document, where the name of each one has to correspond to the name of an output property containing the result of the query.
Picture
​Submitting your job 
You can now submit the job according to the current plan. After selecting the Submit icon, click Ok. You can move to the Monitoring and Reporting tab to check what's happening when a confirmation message appears.
Picture
​Monitor page.

​
You can visit the monitor page to see the status of the work after you've submitted it:
Picture
​Job Log
​
You can view the job log from the monitor page:
Picture
​Output properties
​
You may view the output properties of the job from the monitor page:
Picture
​Conclusions
​
In conclusion, the JSONata Plugin for Workload Automation provides robust JSON, XML, and YAML data manipulation capabilities. Your automation workflows may easily extract, manipulate, and filter data by incorporating JSONata queries into them. Variable passing is supported by the plugin, enabling dynamic input from diverse sources. Optimise your data processing operations by utilising Workload Automation's efficiency and versatility with JSONata.

Author
Ivan Giacomoni - Software Engineer (Backend Developer) at HCL Software.        
Works as a Backend Developer in Workload Automation. Acquired skills on Java, Microservices, Docker.
Hobbies side, I’m very passionate about football and tennis.
Picture
Michelangelo Pinto - Software Engineer at HCL Software
 
 
As part of the SaaS DevOps Team for Workload Automation on SaaS, Michelangelo Pinto embraces the challenges of building robust and efficient solutions. With a humble approach to his work, he effectively collaborates with colleagues and contributes to the success of his team. Beyond coding, he finds joy in exploring new technologies and staying connected with the vibrant developer community. Outside of work, he enjoys spending time by the sea and indulging in good food.
Picture

Co-Author
​Ernesto Carrabba, Product Manager, HCL Clara, HCL HERO and HCL Workload Automation 
 
Ernesto Carrabba is the Product Manager for HCL Clara, HCL HERO and HCL Workload Automation. Ernesto is a very dynamic product manager with experience in building and launching IoT products, combined with a master's degree in mechanical engineering and study researches on Augmented and Virtual Reality. 
Picture
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    October 2025
    July 2025
    June 2025
    May 2025
    March 2025
    February 2025
    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    August 2024
    July 2024
    June 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    October 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2024 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new