M
M
Maxim2018-10-30 19:12:17
JavaScript
Maxim, 2018-10-30 19:12:17

How to output JSON with the same keys?

Good afternoon !
How to output JSON array. If the keys are the same.

JSON
[
   {
      "model": "Jeep Grand Cherokee 2001",
      "detal": "Компрессор кондиционера",
      "dop": {
         "nam": "ARF-60",
         "sum": "1000",
         "img": "/normal/60_1.jpeg",
         "info": "green"
      }
   },
   {
      "model": "Toyota Land Cruiser 120 2003",
      "detal": "Генератор",
      "dop": {
         "nam": "ARF-95",
         "sum": "2300",
         "img": "/normal/60_1.jpeg",
         "info": "green"
      }
   },
   {
      "model": "Toyota Land Cruiser 120 2003",
      "detal": "Генератор",
      "dop": {
         "nam": "ARF-101",
         "sum": "3080",
         "img": "/normal/60_1.jpeg",
         "info": "green"
      }
   },
   {
      "model": "Jeep Grand Cherokee 2001",
      "detal": "Датчик",
      "dop": {
         "nam": "ARF-102",
         "sum": "4500",
         "img": "/normal/60_1.jpeg",
         "info": "dzerzhinsky"
      }
   }
]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dollar, 2018-10-30
@Maxim_1

Filter by model:
Filter by part:
The output is a complete array. Do whatever you want with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question