Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vishal Singh-Module5 #87

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

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