E
E
Erl2020-07-22 13:50:56
JSON
Erl, 2020-07-22 13:50:56

Is it possible to add an id automatically?

There is such a json (this is an excerpt), is it possible to assign an ID automatically somehow? maybe some kind of service?

"ammo": [{
            "caliber": "11,43x23",
            "items": [{
                    "name": ".45 FMJ",
                    "caliber": "11,43x23",
                    "damage": "72",
                    "arm_pentra": "19",
                    "arm_damage": "36%",
                    "bullet_frag": "1%",
                    "speed": "285",
                    "ricochet": "7%",
                    "without_armor": [{
                        "min": "2",
                        "avg": "2",
                        "max": "2"
                    }],
                    "gen4": [{
                        "min": "22",
                        "avg": "22",
                        "max": "22"
                    }],
                    "zhuk6": [{
                        "min": "21",
                        "avg": "21",
                        "max": "21"
                    }]
                },
                {
                    "name": ".45 RIP",
                    "caliber": "11,43x23",
                    "damage": "72",
                    "arm_pentra": "19",
                    "arm_damage": "36%",
                    "bullet_frag": "1%",
                    "speed": "285",
                    "ricochet": "7%",
                    "without_armor": [{
                        "min": "1",
                        "avg": "1",
                        "max": "1"
                    }],
                    "gen4": [{
                        "min": "15",
                        "avg": "15",
                        "max": "15"
                    }],
                    "zhuk6": [{
                        "min": "15",
                        "avg": "15",
                        "max": "15"
                    }]
                }
            ]
        },

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question