Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Cadet 3rd Class
Cadet 3rd Class
821 views

JSON folder follower connector parsing JSON array files where there are more than one type

Hi All,

I've installed a JSON folder follower connector to read a folder /data for content. My parser file, xyz.jsonparser.properties works for the JSON files being written to /data. They are all of one type i.e. contain the same name/value pairings. But, what if I want to use the same connector to read JSON arrays of a different type where the number of name/value pairings and content are completely different e.g. the array is longer??

Ideally, I would like to use a single JSON folder follower connector to read /data/folder1, /data/folder2, /data/folder3 etc. where each  of these folders has a different type of JSON file written to it.

To handle this, I would have a jsonparser.properties file for each type...

As things stand I can only pass JSON of a single type. There doesn't seem to be a way of adding multiple agents to the JVM such that the agent.properties file could have more than one agent referenced - this may not be supported for this type of connector and may not be performant?

Using an extraprocessor doesn't seem right because it's designed to parse again i.e. the extraprocessor is passed an already mapped field.

It could be an issue that with trigger node location - I am assuming that this is just the folder location/directory from where the JSON is read - the documentation is not clear on this.

I would be rateful for any thoughts/advice on this,

Kind Regards,

 

Jim

 

 

 

 

 

 

 

 

Labels (1)
Tags (1)
0 Likes
0 Replies
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.