not done this before. looking for a little direction and help. thanks all.
I need to take a csv data file and convert it to a json file of specific format. I'm reading up on JsonObject and JsonArray right now, ... thanks!
I have something like this.
timestamp,NST_MD3_CRANK_CASE,NST_MD3-TAH-0001,NST_MD3-TAH-0002,NST_MD3-TAH-0003,NST_MD3-TAH-0004,NST_MD3-TAH-0005,NST_MD3-TAH-0006,NST_MD3-TAH-0007,NST_MD3-TAH-0008,NST_MD3-TAH-0009,NST_MD3-TAH-0010,NST_MD3-TAH-0011,NST...
4/10/2018 7:55:10 PM,101,261,258,276,267,274,279,273,286,273,276,288,292,268,297,285,316,81,136,100,0,0,388,395,84,956,20,1,0,100,0,17,0,31,16,31,18,23,694.7667,59.98439,0,0,0,1,14998,13,24
4/10/2018 7:58:10 PM,101,261,258,276,267,274,279,273,286,273,276,288,292,268,297,285,316,81,136,100,0,0,388,395,84,956,20,1,0,100,0,17,0,31,16,31,18,23,694.9326,59.92459,0,0,0,1,14998,13,24
And I need it in a Json format like this...
{ "tags": [ {"tagId": "NST_MD1_CRANK_CASE","data":[ {"ts":"2017-11-15T19:55:00","v" : "100","q":"3"}] }, ... ] }
I am using camel, java and jackson. thanks again!