This is a JSON file and I would like to map through it so I can find out which line a string is on and how long that line is. for example `"hello world line one chapter one"` would output 1, 1,26 (chapter one, line one, 26 is the length). then  `hello world line three chapter two` would output 2, 3, 27 ( chapter 2, line 3, 27 is the length).

how would I write a javascript/react loop/map/filter to do this?

```
  "text": [
    [
      "hello world line one chapter one",
      "hello world line two chapter one",
      "hello world line three chapter one"
    ],
    [
      "hello world line one chapter two",
      "hello world line two chapter two",
      "hello world line three chapter two"
    ],
    [
      "hello world line one chapter three",
      "hello world line two chapter three",
      "hello world line three chapter three"
    ]
  ]
}

```