You are here

public function JSON::decode in Apigee Edge 8

Decodes field data from the target format.

Parameters

string $data: Encoded data.

Return value

array Decoded data.

Overrides FieldStorageFormatInterface::decode

File

src/Plugin/ApigeeFieldStorageFormat/JSON.php, line 46

Class

JSON
JSON formatter for Apigee Edge field storage.

Namespace

Drupal\apigee_edge\Plugin\ApigeeFieldStorageFormat

Code

public function decode(string $data) : array {
  return json_decode($data, TRUE);
}