After receiving the plain text data from an input source, I have the following information:
1 agri dev ban lt shortform1 346 346 343 343 9,671 346 3,330,659 78 -3.00 -0.87 3.00 0.87 361.80 400.07 449.86 472.00 283.00
2 Api Pwr Cpy shortform2 355 355 347 348 2,702 355 942,793 36 -7.00 -1.97 8.00 2.31 366.09 465.42 479.63 683.00 246.00
I now require an array that will hold JSON objects structured as follows:
[
{
traded: shortform1,
close: 343,
previousClose: 355
},
{
traded: shortform2,
close: 348,
previousClose: 355
}
]