I'm new with javascript.
I want to know if there is a possibility to convert a DOMString (taken by reading a file saved in the Filesystem) and converting it into an Array, since I need it to perform an operation.
I'm using e.target.result to read the content of the file, and the result is
{element: "one", value: "one"},
{element: "two", value: "two"},
{...},
{...}
and I need the array saved in this way
var array = [{element: "one", value: "one"},
            {element: "two", value: "two"},
            {...},
            {...}]
any Idea how to do it? Thanks in advance
 
     
     
    