2
Hello
I’m having a problem and I’m having a hard time solving it.. Let’s go there
I have 4 exactly equal JSON files with 22,000 product records, same parameters and everything, the only difference between them is that each one has a different stock value (are 4 stores each with their stock)
I need a single JSON with the 4 stock values in it, in order to be able to implement in my system and use it to remove my reports that I need so much
Example
I have it
{
"id": 1,
"nome": produto1,
"valor": 20.0,
"estoque": 5
},
{
"id": 1,
"nome": produto1,
"valor": 20.0,
"estoque": 2
},
{
"id": 1,
"nome": produto1,
"valor": 20.0,
"estoque": 3
}
And I need it
{
"id": 1,
"nome": produto1,
"valor": 20.0,
"estoque": 5,
"estoque2": 2,
"estoque3": 3
}
Someone to give a light?