How to split text into key-pair value in JavaScript?

I have received result from Raspberry Pi as Text format and I want to use these text to insert into MongoDB as key-pair value or JSON for my Node.js Application. However, I am quite new with JavaScript and trying to figure out the solution. Please help me if you have any suggestion, Thank you very much.

Example:

//Text from Raspberry Pi

1, 2300,450
2, 2200, 920
3, 3400, 440

and I want it to be

[
 {
  person: 1,
  x position: 2300,
  y position: 450
 }, 
 {
  person: 2,
  x position: 2200,
  y position: 920
 }, 
 {
  person: 3,
  x position: 3400,
  y position: 440
 }
]