I have JSONpayload like this;
[ { "Samples" : { "Load" : [ { "dataItemId" : "a5", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "Aload", "sequence" : "19", "subType" : null, "content" : null }, { "dataItemId" : "a7", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "AAA", "sequence" : "19", "subType" : null, "content" : null } ], "Angle" : [ { "dataItemId" : "a6", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "Aact", "sequence" : "20", "subType" : "ACTUAL", "content" : null } ] } } ] I want to receive JSON like this;
{ "Samples" : [ { "tag_name": "Load", "dataItemId" : "a5", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "Aload", "sequence" : "19", "subType" : null, "content" : null }, { "tag_name": "Load", "dataItemId" : "a7", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "AAA", "sequence" : "19", "subType" : null, "content" : null }, { "tag_name": "Angle", "dataItemId" : "a6", "timestamp" : "2019-02-17T04:58:44.097Z", "name" : "Aact", "sequence" : "20", "subType" : "ACTUAL", "content" : null } ] } In my scenario, I must convert each json data defined above. I receive 500 JSON data per second. How can I do this using Jolt Specification? Do Jolt Specification fast? Do it suitable for streaming? Or Should I write my own script for this?
fastcomparing to what?500 JSON per secondjust increase the count of threads for this processor.suitable for streaming: jolt consumes and produces "hydrated" JSON - in-memory tree of Maps, Arrays, etc. ihmo: whatever you write would be comparable to jolt.