Skip to content

Pushpraj singh jadoun module5#85

Open
pushprajsinghjadoun wants to merge 13 commits intohotwax:mainfrom
pushprajsinghjadoun:PushprajSinghJadoun_Module5
Open

Pushpraj singh jadoun module5#85
pushprajsinghjadoun wants to merge 13 commits intohotwax:mainfrom
pushprajsinghjadoun:PushprajSinghJadoun_Module5

Conversation

@pushprajsinghjadoun
Copy link

@pushprajsinghjadoun pushprajsinghjadoun commented May 22, 2023

Jolt Transformation

In this module, I learned about Jolt Transformation.

Jolt Transformation is a Java-based open-source library that provides a simple and flexible way to transform JSON data. It allows you to define a set of transformation rules in JSON format that can be applied to your input JSON data to produce the desired output.

Some common operations are:

Shift
Default
Remove
Sort
Cardinality
Modify-default-beta
Modify-overwrite-beta

Wildcards:

Ampersand (&)
Asterisk (*)
Hash (#)
Dollar ($)
At (@)
Pipe (|)"

**Thanks to all my mentors for solving my doubts & my teammates for helping me.**

Output

{
"FullName" : "John Doe",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This output is not same as expected output, please check it once.


{
"name" : "John Doe",
"address" : "123 Main St, Anytown, CA, 12345",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no comma after CA in the expected output.

"department" : "HR"
},
"002" : {
"name" : "Jane",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output is not as the expected output.

"name" : "Jane",
"department" : "Sales",
"homePhone" : "555-555-5678",
"workPhone" : "555-555-8901"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output is not as the expected output.

} ]
}, {
"id" : "order2",
"date" : "2022-02-01T00:00:00Z",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output is not as expected output.

"*": {
"available": "false"
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do the same thing with the default operation? If, yes then add that spec as well.


[ {
"returnId" : "10051",
"country" : "United States of America",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep it as written in the expected output.


Output

{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output is not as the expected output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants