Drupal 8  8.0.2
Inheritance diagram for Json:

Static Public Member Functions

static encode ($variable)
 
static decode ($string)
 
static getFileExtension ()
 

Detailed Description

Default serialization for JSON.

Member Function Documentation

static decode (   $string)
static

{Decodes data from the serialization format.

Parameters
string$rawThe raw data string to decode.
Returns
mixed The decoded data.
}

Implements SerializationInterface.

Referenced by CreateTest\assertCreateEntityInvalidSerialized(), PreviewTest\clickPreviewLinkAJAX(), WebTestBase\drupalGetAjax(), WebTestBase\drupalGetJSON(), WebTestBase\drupalPostAjaxForm(), EntityAutocompleteTest\getAutocompleteResult(), ViewAjaxTest\testAjaxView(), QuickEditAutocompleteTermTest\testAutocompleteQuickEdit(), DisplayBlockTest\testBlockContextualLinks(), MenuTest\testBlockContextualLinks(), FormTest\testCheckboxProcessing(), CommentRestExportTest\testCommentRestExport(), QuickEditLoadingTest\testConcurrentEdit(), ContentTranslationContextualLinksTest\testContentTranslationContextualLinks(), QuickEditLoadingTest\testCustomPipeline(), ElementsVerticalTabsTest\testDefaultTabCleaned(), ContextualDynamicContextTest\testDifferentPermissions(), FormTest\testDisabledElements(), EmailTest\testFormEmail(), ResponseTest\testFormResponse(), StateValuesCleanTest\testFormStateValuesClean(), UrlTest\testFormUrl(), LanguageSelectElementTest\testHiddenLanguageSelectElement(), HistoryTest\testHistory(), QuickEditLoadingTest\testImageField(), NodeContextualLinksTest\testNodeContextualLinks(), DisplayTest\testPageContextualLinks(), UpdateTest\testPatchUpdate(), ReadTest\testRead(), JsonTest\testReversibility(), FormTest\testSelect(), AttachedAssetsTest\testSettings(), JsonTest\testStructuredReversibility(), EditorSecurityTest\testSwitchingSecurity(), ThemeTest\testThemeOnNonHtmlRequest(), QuickEditLoadingTest\testTitleBaseField(), UpdateTest\testUpdateUser(), QuickEditIntegrationLoadingTest\testUserWithPermission(), QuickEditLoadingTest\testUserWithPermission(), ConfigTranslationUiTest\testViewsTranslationUI(), DbLogResourceTest\testWatchdog(), and RenderWebTest\testWrapperFormatCacheContext().

Here is the caller graph for this function:

static encode (   $variable)
static
static getFileExtension ( )
static

{Gets the file extension for this serialization format.

Returns
string The file extension, without leading dot.
}

Implements SerializationInterface.


The documentation for this class was generated from the following file: