I have a JSON file which has this:
[
   {
      "id":"1",
      "customer":{
         "nickname":"nick001",
         "email":"",
         "id":"15615",
         "name":"Smith Dole",
         "phone":"5555555"
      },
      "totalorder":"44155",
      "items":[
         {
            "code":"041545420",
            "title":"item",
            "quantity":1,
            "price":"2461.7500",
            "subtotal":2461.75
         }
      ]
   }
]
As you can see it doesn´t have any parent root name. How can I read this JSON with JavaScript ?
I was thinking to PARSE the Json but JSON.parse(need the name)
Is it possible to call this JSON in my JavaScript code and asign it a variable ?
var newSelling = data from the JSON
The JSON is being generated by another system which generates it that way so I need to read the JSON to get the data needed for other processes
the JSON is automatically generated and it is in an external file
 
     
     
     
     
    