Member since
10-20-2024
1
Post
0
Kudos Received
0
Solutions
10-21-2024
11:49 PM
Hi, I am using JoltTransformJson to convert a plain json to nested json in Nifi and getting null in the output. The same i/p and spec is working in Jolt demo. Below are the input and the spec Input: { "ts" : "2024-09-22T12:03:13.000Z", "sourceDeviceId" : 4321, "sourceName" : "light1", "sourceType" : "light", "locationLat" : 201.34, "locationLon" : 101.5, "locationId" : 1, "recordDate" : "2024-09-22T12:03:13.000Z", "_class" : "com.prutech.smartcity.entity.LightEntity", "_id" : "66f27c487bd8652abecdb9c7", "status" : "INACTIVE", "power" : 0, "current" : 0, "intensity" : 100, "voltage" : 0 } Jolt Spec: { "operation": "shift", "spec":{ "ts":"ts", "sourceDeviceId":"source.deviceId", "sourceName":"source.name", "sourceType":"source.type", "locationLat":"location.lat", "locationLon":"location.lon", "locationId":"location.id", "recordDate":"recordDate", "_class":"_class", "status":"status", "power":"power", "current":"current", "intensity":"intensity", "voltage":"voltage" } } Please help.
... View more
Labels:
- Labels:
-
Apache NiFi