bazaarvoice / jolt

JSON to JSON transformation library written in Java.
Apache License 2.0
1.53k stars 328 forks source link

please give a spec for any change of the input jsonarray #796

Open payzulla opened 5 years ago

payzulla commented 5 years ago

input : [{ "country": "cn", "city": "MOW", "stationType": "SUPREMA-RealScan-10", "project": "visa", "enrollment": { "workflow": "ch" }, "tags": "audit", "reference": { "tls_group": "", "tls": "", "id": "1001186628" }, "service": "emetrics", "domain": "biometrics", "host": "TLSBJS-SC-W0405", "action": { "duration": "0", "result": "", "name": "enrolment", "comment": "", "type": "biometrics", "timestamp": "2019-03-01T02:57:11.3862618Z" }, "user": { "role": "", "id": "", "login": "candice.weng" }, "softwareVersion": "Unknown", "policy": "audit", "timestamp": "2019-05-02T09:12:23.307Z" }, { "country": "cn", "city": "MOW", "stationType": "SUPREMA-RealScan-10", "photo": { "faceException": "false", "wearsGlasses": "false", "faceEyeDetectionConfidence": "false", "backgroundUniformity": "false", "faceFrontalPoseDeviation": "false", "faceRollAngle": "false", "mouthClosedConfidence": "false", "faceMatch": "false", "hotspots": "false", "icaoFailureComment": "", "result": "false", "eye0OpenConfidence": "false", "faceLightingUniformity": "false", "faceContrast": "false", "faceLengthToImageRatio": "false", "faceSharpness": "false", "attempts": "false", "faceExposure": "false", "faceMatchFailureComment": "", "imageAspectRatio": "false", "method": "LIVE", "faceVerticalPositioning": "false", "faceHorizontalCentering": "false", "faceWidthToImageRatio": "false", "faceMatchScore": "", "eye1OpenConfidence": "false", "eyeDistance": "false" }, "project": "visa", "enrollment": { "workflow": "ch" }, "tags": "audit", "reference": { "tls_group": "", "tls": "", "id": "1001186628" }, "service": "emetrics", "domain": "biometrics", "host": "TLSBJS-SC-W0405", "action": { "duration": "0", "result": "", "name": "photo", "comment": "", "type": "biometrics", "timestamp": "2019-03-01T02:57:11.3862618Z" }, "user": { "role": "", "id": "", "login": "candice.weng" }, "softwareVersion": "Unknown", "policy": "audit", "timestamp": "2019-05-02T09:12:23.307Z" }, { "country": "cn", "city": "MOW", "stationType": "SUPREMA-RealScan-10", "project": "visa", "enrollment": { "workflow": "ch" }, "tags": "audit", "reference": { "tls_group": "", "tls": "", "id": "1001186628" }, "passport": { "result": "", "dataSource": "", "attempts": "", "efidPassport": "" }, "service": "emetrics", "domain": "biometrics", "host": "TLSBJS-SC-W0405", "action": { "duration": "0", "result": "", "name": "passport", "comment": "", "type": "biometrics", "timestamp": "2019-03-01T02:57:11.3862618Z" }, "user": { "role": "", "id": "", "login": "candice.weng" }, "softwareVersion": "Unknown", "policy": "audit", "timestamp": "2019-05-02T09:12:23.307Z" }, { "country": "cn", "city": "MOW", "stationType": "SUPREMA-RealScan-10", "project": "visa", "enrollment": { "workflow": "ch" }, "fingerprints": { "result": "", "score": "", "exemptions": "", "fingerprintException": "", "enrolmentComment": "", "attempts": "" }, "tags": "audit", "reference": { "tls_group": "", "tls": "", "id": "1001186628" }, "service": "emetrics", "domain": "biometrics", "host": "TLSBJS-SC-W0405", "action": { "duration": "0", "result": "", "name": "fingerprints", "comment": "", "type": "biometrics", "timestamp": "2019-03-01T02:57:11.3862618Z" }, "user": { "role": "", "id": "", "login": "candice.weng" }, "softwareVersion": "Unknown", "policy": "audit", "timestamp": "2019-05-02T09:12:23.307Z" }, { "country": "cn", "city": "MOW", "signature": { "result": "", "signatureComment": "", "signatureException": "" }, "stationType": "SUPREMA-RealScan-10", "ip": "", "project": "visa", "enrollment": { "workflow": "ch" }, "tags": "audit", "reference": { "tls_group": "", "tls": "", "id": "1001186628" }, "service": "emetrics", "domain": "biometrics", "host": "TLSBJS-SC-W0405", "action": { "duration": "0", "result": "", "name": "signature", "comment": "", "type": "biometrics", "timestamp": "2019-03-01T02:57:11.3862618Z" }, "user": { "role": "", "id": "", "login": "candice.weng" }, "softwareVersion": "Unknown", "policy": "audit", "timestamp": "2019-05-02T09:12:23.307Z" }, { "country": "cn", "request": { "type": "form_and_biometrics" }, "city": "MOW", "project": "visa", "tags": "audit", "reference": { "id": "1001186628" }, "service": "Signature Tool", "domain": "biometrics", "host": "", "action": { "result": "", "name": "client_send", "comment": "Offline", "type": "file_transfer", "timestamp": "2019-05-02T09:12:23Z" }, "client": { "code": "ch" }, "user": { "role": "", "workstation": "TLSBJS-IN-W0153", "id": "", "login": "kevin.sun" }, "policy": "audit", "timestamp": "2019-05-02T09:12:23Z" }, { "country": "cn", "request": { "type": "form_and_biometrics" }, "city": "MOW", "project": "visa", "tags": "audit", "reference": { "id": "1001186628" }, "service": "Signature Tool", "domain": "biometrics", "host": "", "action": { "result": "SUCCESS", "name": "client_response", "comment": "Offline", "type": "file_transfer", "timestamp": "2019-05-02T09:12:23Z" }, "client": { "code": "ch" }, "user": { "role": "", "workstation": "TLSBJS-IN-W0153", "id": "", "login": "kevin.sun" }, "policy": "audit", "timestamp": "2019-05-02T09:12:23Z" }]

payzulla commented 5 years ago

the output should contain all the jsonObject