[Solved] Getting Issue in Parsing String Using PHP


Assuming the following variable $string contains your sample json string.
Decode using json decode and iterate over the inner Products array.

$json = json_decode($string);

foreach($json->Products as $product){
    print $product->IXOneId . ' ' . $product->UPC12 . PHP_EOL;
}

Will output

SNL1080 037014000245
SNL1090 747599617003
SNL1079 024182001822
SNL1102 745158300519
SNL1077 024182001891
SNL1148 039978003645
SNL1110 070670005759
SNL1083 037014000290

0

solved Getting Issue in Parsing String Using PHP