Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using DataWeave Fraud attempt challenge problem: Suspects are listed in a JSON Object, each suspect has an object of their own that lists a clue(array

Using DataWeave

Fraud attempt challenge problem: Suspects are listed in a JSON Object, each suspect has an object of their own that lists a clue(array of #) and their ID(a single #). Loyal consumers know if you add 1 to the each value in clue and multiply them together, you get a trueID(result) and if they match it displays a status of "innocent" else it displays a status of "guilty"

image text in transcribed

image text in transcribed

"suspect1": \{ "clue": {[3,2,6], "id": 84 \} "suspect2": \{ "clue": [7,1,3], "id": 62 \} "suspect3": \{ "clue": [4,5,9] "id": 300 \} Output: \{ "suspect1": "clue": 3, 2, ], "id": 84, "result": 84, "status": "innocent" "suspect2": \{ "clue": [ 7, 1, 3 ], "id": 62, "result": 64, "status": "guilty" \}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions