Skip to content

Prakhar Yadav Module 5#86

Open
ydv-prakhar wants to merge 5 commits intohotwax:mainfrom
ydv-prakhar:PrakharYadav_Module5
Open

Prakhar Yadav Module 5#86
ydv-prakhar wants to merge 5 commits intohotwax:mainfrom
ydv-prakhar:PrakharYadav_Module5

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