If escape strings are not already part of your pattern you can add them using String.replace:
function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string }
<?php
$FIGI= ["BBG000HLJ7M4","BBG002293PJ4","BBG000BH0FR6"];
$data = ["figi" => $FIGI];
$data_string = json_encode ($data);
print($data_string);
// {"figi":["BBG000HLJ7M4","BBG002293PJ4","BBG000BH0FR6"]}
$property = $json_obj['data'][0];
[
"type" => "property",
"id" => "c0b6c16a-3002-48d3-a832-65311736d4da",
"attributes": [
"inline_address" => "string",
"public_address" => "string"
]
]
foreach($property as $value)
вы перебираете все значения данного массив и на первом же значении получаете "property"['attributes']
.