"Drupal8解析json数据"
Published on Aug. 22, 2023, 12:09 p.m.
Use the Json::decode() method:
use Drupal\Component\Serialization\Json;
...
$decoded = Json::decode($data);
Published on Aug. 22, 2023, 12:09 p.m.
Use the Json::decode() method:
use Drupal\Component\Serialization\Json;
...
$decoded = Json::decode($data);