JSON is a programming language independent data transfer format, that works with pretty much any language which supports objects (and some that don't).
If you feed your JSON data sample into a converter (there is one here:
Convert JSON to PHP Array Online | WTOOLS[
^] ) you get the following PHP code:
array (
'data' =>
array (
'result' => 'success',
'totalresults' => 1,
'startnumber' => 0,
'numreturned' => 1,
'orders' =>
array (
'order' =>
array (
0 =>
array (
'id' => 6,
'ordernum' => 8015255572,
'userid' => 3,
'contactid' => 0,
'requestor_id' => 0,
'admin_requestor_id' => 2,
'date' => '2021-11-05 13:21:32',
'nameservers' => '',
'transfersecret' => '',
'renewals' => '',
'promocode' => '',
'promotype' => '',
'promovalue' => '',
'orderdata' => '[]',
'amount' => '0.00',
'paymentmethod' => 'banktransfer',
'invoiceid' => 3,
'status' => 'Pending',
'ipaddress' => 'xxx',
'fraudmodule' => '',
'fraudoutput' => '',
'notes' => '',
'paymentmethodname' => 'Bank Transfer',
'paymentstatus' => 'Paid',
'name' => 'Emma Test',
'currencyprefix' => '€',
'currencysuffix' => ' EUR',
'frauddata' => '',
'validationdata' => '',
'lineitems' =>
array (
'lineitem' =>
array (
0 =>
array (
'type' => 'product',
'relid' => 9,
'producttype' => 'Other Product/Service',
'product' => 'xxx & Exchange - xxx',
'domain' => 'xxx',
'billingcycle' => 'Free Account',
'amount' =>
array (
),
'status' => 'Pending',
),
1 =>
array (
'type' => 'addon',
'relid' => 3,
'producttype' => 'Addon',
'product' => 'Exchange Postfach',
'domain' => '',
'billingcycle' => 'Free Account',
'amount' =>
array (
),
'status' => 'Pending',
),
),
),
),
),
),
),
)
Which shows you the structure of your data and how you would access it.
Then - as Chris suggested - use
PHP: json_decode - Manual[
^] to convert your actual data string to that structure and you can access any part of the data as if the code I showed was written into your app.