Member since
01-23-2020
4
Posts
0
Kudos Received
0
Solutions
01-25-2020
06:08 AM
I’m the schema remove the second row in fields. So it’s just id1. Now do a test: use generateflowfile with the schema in contents. Then evaluatejson. In this processor click +, and make id1. The value for id1 is then $.value.id1 (this is the code to get the real value. Then route evaluatejson routes to an output port. Run. Inspect the item in the queue and confirm you see the attribute id1. This is a simple example to help you understand how json works, how to get the data from the value object, how to confirm schema is correct, and how to unit test by looking at flowfile in the queue.
... View more