Skip to content

Instantly share code, notes, and snippets.

@DarkHole1
Forked from bubnenkoff/json.json
Last active November 18, 2020 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarkHole1/42910abc163647f4654cce4bd19ba405 to your computer and use it in GitHub Desktop.
Save DarkHole1/42910abc163647f4654cce4bd19ba405 to your computer and use it in GitHub Desktop.
<script>
var data = [{
"fz": 44,
"registration_number": "0301300020720000004",
"organizer_inn": "0268019693",
"fas_complaints": "False",
"placing_way": "Электронный аукцион",
"lots": {
"lot_number": 1,
"lot_items": [{
"object_code": "20.59.52.199"
}],
"suppliers": [{
"supplier_name": "общество с ограниченной ответственностью \"Стандартная диагностика\"",
"dishonest": "False",
"winner": "True",
"inn": "0278209090",
"registered_recently": "False",
"only_supplier": "True"
}]
}
},
{
"fz": 44,
"registration_number": "0301300020720000004",
"organizer_inn": "0268019693",
"fas_complaints": "False",
"placing_way": "Электронный аукцион",
"lots": {
"lot_number": 2,
"lot_items": [{
"object_code": "21.51.4.029"
}],
"suppliers": [{
"supplier_name": "общество с ограниченной ответственностью \"Стандартная диагностика\"",
"dishonest": "False",
"winner": "True",
"inn": "0278209090",
"registered_recently": "False",
"only_supplier": "True"
}]
}
},
{
"fz": 44,
"registration_number": "0301300020720000002",
"organizer_inn": "0268019693",
"fas_complaints": "False",
"placing_way": "Электронный аукцион",
"lots": {
"lot_number": 1,
"lot_items": [{
"object_code": "49.31.21.190"
}],
"suppliers": [{
"supplier_name": "ОБЩЕСТВО С ОГРАНИЧЕННОЙ ОТВЕТСТВЕННОСТЬЮ \"АВТЕЛЬ\"",
"dishonest": "False",
"has_offer": "True",
"winner": "False",
"inn": "0276925268",
"only_supplier": "False"
}, {
"supplier_name": "Общество с ограниченной ответственностью «Центр Столичной Недвижимости «СемиАрт»",
"dishonest": "False",
"has_offer": "True",
"winner": "False",
"inn": "0278216877",
"only_supplier": "False"
}, {
"supplier_name": "ГБУЗ Санитарный автотранспорт г. Стерлитамак",
"dishonest": "False",
"has_offer": "True",
"winner": "True",
"inn": "0268021212",
"only_supplier": "False"
}]
}
}, {
"fz": 44,
"registration_number": "0301300020720000003",
"organizer_inn": "0268019693",
"fas_complaints": "False",
"placing_way": "Электронный аукцион",
"lots": {
"lot_number": 1,
"lot_items": [{
"object_code": "20.59.52.199"
}],
"suppliers": [{
"supplier_name": "Общество с ограниченной ответственностью \"Медицинские системы\"",
"dishonest": "False",
"winner": "True",
"inn": "0278197430",
"only_supplier": "True"
}]
}
} ]
let arr = []
data.forEach( el => el.lots.suppliers.forEach(s => arr.push({inn: s.inn}) ) )
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment