function Json::getFileExtension

Same name in other branches
  1. 9 core/lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::getFileExtension()
  2. 8.9.x core/lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::getFileExtension()
  3. 11.x core/lib/Drupal/Component/Serialization/Json.php \Drupal\Component\Serialization\Json::getFileExtension()

Overrides SerializationInterface::getFileExtension

File

core/lib/Drupal/Component/Serialization/Json.php, line 32

Class

Json
Default serialization for JSON.

Namespace

Drupal\Component\Serialization

Code

public static function getFileExtension() {
    return 'json';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.