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

Prakhar Yadav Module 5 #86

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

Conversation

ydv-prakhar
Copy link

In this Module I learnt about JSON and Jolt, then practiced writing Jolt specs by solving the transformations in the Module 5.

@ydv-prakhar ydv-prakhar changed the title The Jolt Transformation Specs Completed Prakhar Yadav Module 5 May 22, 2023
"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 be in decimal

Copy link
Author

Choose a reason for hiding this comment

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

Converted it into double using the 'toDouble' function.

]
Output JSON
[ {
"Name" : "name",

Choose a reason for hiding this comment

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

Name and Age should contain's values.

Copy link
Author

Choose a reason for hiding this comment

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

Done


Output:
{
"employees" : [ {

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.

Copy link
Author

Choose a reason for hiding this comment

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

Done

"employees" : [ {
"name" : "John",
"age" : 30,
"salary" : 5500.0,

Choose a reason for hiding this comment

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

salary should be in Integer and why there is temp in output ?

Copy link
Author

Choose a reason for hiding this comment

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

Made the required changes.

]

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 structure.

Copy link
Author

Choose a reason for hiding this comment

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

Have done all the required changes, thank you!.

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