Questions tagged [jolt]

A JSON to JSON transformation library written in Java.

Jolt is a to JSON transformation library written in .

For more information, see the GitHub page.

Latest release: 0.1.6 released on Mar 28, 2022

1312 questions
0
votes
1 answer

NiFi - JOLT Spec add custom field

I need help with a JOLT Spec, I am not experienced in JOLT expression language and to get to this point to flatten the JSON response with JOLT Spec took me quite a while. I need to add a variable that is NOT in the JSON response in my attempt I use…
0
votes
1 answer

Ho do I transform using Json using bolt?

I have to transform one JSON to another JSON, I am new to jolt.if you have any other methods in java please let me know. Input can have many other attributes in a nested manner. I have to make generic code which can consume all the fields in JSON…
drtvhood
  • 17
  • 1
  • 7
0
votes
1 answer

sort an array of json document

I'm wondering if it's possible to sort or bring the min value in case of an array of json. I read something about this issue but found nothing. This is the Input: { "intData": [ { "DATE": "2018", "NOME": "raf" }, { …
0
votes
1 answer

How to move values from upper to lower object and keep grouping in jolt transformation

I am trying to extract data from a large json file. I need to match data from nested objects and lists as it is extracted. I have written dozens of specs for this. The closest 'wrong' solution left the output full of null values. The current spec is…
0
votes
1 answer

Jolt transformation for extracting data from nested list

What is the Jolt Spec for extracting data from nested list I have been experimenting with apache nifi , I want to use joltransformation processor for parsing json flow file content ,but I am unable to parse nested list Input JSON - { "posts": [ …
Aadi
  • 154
  • 1
  • 2
  • 18
0
votes
3 answers

JOLT transform by condition

I have a JSON like this, { "entry": [ { "resource": { "id": "car-1", "type": "vehicle", "color": "red", "owner": { "ref": "Person/person-1" } } }, { "resource": { …
Prakash P
  • 100
  • 1
  • 7
0
votes
2 answers

Jolt Transformation with deep nested arrays

I need to transform a JSON using JOLT. I am a newbie to JOLT transformation. below are the details. We are trying to using Jolt transformation in NiFi to transform jsons. here is the input { "Parent": { "Child": { "GrandChild": [ …
VamsiKrishna
  • 751
  • 6
  • 14
  • 29
0
votes
1 answer

JOLT to index a field based on the name of another

Not sure if this is possible in jolt. We are trying to extract a value whose field name is indexed by another field. Please take a look at the description below. { "_src" : { "SomeName" : 123, "FName" : "SomeName" } } to { "val":…
JoaoCC
  • 624
  • 6
  • 15
0
votes
1 answer

How to Use Attribute for JoltSpecification in Nifi Jolt

I want to create Jolt Specification in Update Attribute processor and use in JoltTransformer processor as an attribute like below. I get this error in JoltTransformer: . "is invalid because of the specification not valid for the selected…
Ani
  • 598
  • 5
  • 13
  • 29
0
votes
1 answer

How to transform a json to flat using JOLT?

I just need to make the attributes element to be on the same level with the id. I am just having an issue to copy the attributes to be on the same level. This is my sample JSON { "data" : [ { "type" : "types", "id" : "CYY7", …
0
votes
2 answers

Jolt transformation json to json for two siftr operations

I am trying to map one a value of input json to a hashmap of the output json and also want to save the value to some another key using jolt json transformation input json: { "metadata": "/a=value1/b=value2/c=value3" } spec: [{ …
Pooja
  • 13
  • 4
0
votes
1 answer

apache nifi - split line of json by field value

In Apache Nifi, i want to split a line of a json file based on the content of a field delemited by comma. This is an example of my input flowfile : { "name":"app", "os":"linux", "instance":"instance1,instance2,instance3,instance4" } And…
0
votes
3 answers

How to keep a condition for null value in jolt?

INPUT: { "itemName": null, "itemNumber": 22 } OUTPUT: { "isItemNameNull": true, "itemNumber": 22 } I should not map the value if its null but map 'isItemNameNull' to true, SPEC: [ { "operation": "shift", "spec": { "itemName":…
tender
  • 3
  • 1
  • 4
0
votes
1 answer

Custom JOLT Transformation with Mapping

It is possible to make this kind of Json Transformation using JOLT or other java api, and get the mapping result after transformation Example name : is a name of person parent : is also a name of person update all persons ( name and parent )…
Azsoft
  • 31
  • 1
  • 8
0
votes
1 answer

How to add an element right after a JSON Array using Jolt

My sample json looks like this { "Event":{ "EventHeader":{ "size":57, "eventTime":"2018-11-02T20:31:15.428" }, "EventData":{ "record":"XXXXX", …
Despicable me
  • 548
  • 1
  • 9
  • 24