MarketplaceListingsCustom ActivityJSON / JArray Conversion Activities

JSON / JArray Conversion Activities

Bronze Certified

Custom Activity

9 reviews

11.8k

JSON / JArray Conversion Activities

Bronze Certified

Custom Activity

9 reviews

11.8k


Summary

A pack of 3 activities which can handle any nested and complex Json / JArray and converts it into XML, CSV files and Data Table.

carouselImage0

Overview

The package contains 3 custom activities for conversion of JSON/JArray to other data formats:
1. JSON/JArray to CSV file.
2. JSON/JArray to XML file.
3. JSON/JArray to Data Table.
These activities accept all types of complex and nested JSONs either in a text file (specified in the input property InputJsonFilePath) with valid JSON/ JArray in it or it accepts JSON/Jarray string directly (specified in the input property InputJsonString) and creates an output CSV file or XML file, at user's designated path (specified in the input property OutputCSV/XMLFilepath) , or generates a DataTable from the input Json.
  1. Json to CSV: To view the data in tabular format, output CSV file can be opened using Excel. The first row in Excel will be the headers, generated from all the tag names in JSON file. In case of multi-level nested JSON, it retains the complete path of each element, separated by slash '/'. (as explained in image Explanation 1.)
  2. Json To XML: This activity converts Json/Array in XML format without any data loss. In case of JArray, element tags are added for each array element and in case of non-array objects Json keys are converted to XML tags and Json values are converted to XML inner text. Output of this activity should be .xml file. (as explained in image Explanation 3)
  3. Json To DataTable: It converts input Json/JArray to Datatable and provides the flexibility of directly applying all Data Table functions like filtering the JSON Data. In case of JArray, each Data row is converted to Excel Row Item and in case of non JArray structure, all the tags generate headers and in case of multi-level nested JSON, it retains the complete path of each element, separated by slash '/' so as to prevent any data loss. (as explained in image Explanation 2)
Time taken for this conversion is proportional to the level of nested data structure of JSON (between milliseconds to few seconds).

Benefits


Published: 11 Jun 2019 | Updated: 18 Dec 2020


License

By clicking download you agree to the following license.


Code Language

Visual Basic


Runtime

.NET Framework


Tags

complex-json
convert-jarray-to-csv
convert-jarray-to-xml
convert-jrray-to-data-table
convert-json-to-csv
convert-json-to-datatable
convert-json-to-xml
iterative-json
json-to-csv
json-to-csv-converter
json-to-data-table-converter
json-to-datatable
json-to-xml
json-to-xml-converter
nested-json

Compatibility

It is compatible with all previous and current versions of UiPath Studio


Dependencies

Newtonsoft.Json [10.0.3]


Similar Listings