Skip to content

Vishal Singh-Module5#87

Open
vishalsingh456 wants to merge 9 commits intohotwax:mainfrom
vishalsingh456:vishalSingh-Module5
Open

Vishal Singh-Module5#87
vishalsingh456 wants to merge 9 commits intohotwax:mainfrom
vishalsingh456:vishalSingh-Module5

Conversation

@vishalsingh456
Copy link

@vishalsingh456 vishalsingh456 commented May 22, 2023

I have learned Basics of Jolt.
Along with that I have explored

  • functions of Jolt (toUpper, intSum, doubleSum, etc)
  • Operations (shift, modify-default-beta, modify-overwrite-beta, default, etc)
  • Wildcards (@,#,$,&, |, * )
  • Uses of Jolt (JSON to JSON conversion. change the structure of json.)
  • advantages and disadvantages of Jolt
  • Levels of Json.

"itemId": 2,
"name": "Product B",
"quantity": 1,
"price": 20

Choose a reason for hiding this comment

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

Price should have double type value, please correct in all questions.


{
"Name": "John",
"Hobbies": [
Copy link

@sadhanaa21 sadhanaa21 Jun 2, 2023

Choose a reason for hiding this comment

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

Age field is missing.

}


Json spec

Choose a reason for hiding this comment

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

Wrong approach and output as well.


Ouput Json

[

Choose a reason for hiding this comment

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

This is not the required output structure also one field is missing.

"totalAmount": "=intSum(@(1,totalAmount))",
"id": "@(1,orders[0].customerId)"
},
"[0]": {
Copy link

@sadhanaa21 sadhanaa21 Jun 2, 2023

Choose a reason for hiding this comment

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

totalPrice field is missing in output.
Also using customerId instead of index to add name will be better.

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