HumHub Documentation (unofficial)

JsonConverter
in package

FinalYes

Table of Contents

Methods

decode()  : mixed
encode()  : string

Methods

decode()

public static decode(string $payload) : mixed
Parameters
$payload : string
Tags
throws
RuntimeException

if the payload cannot be decoded

encode()

public static encode(mixed $payload) : string
Parameters
$payload : mixed
Tags
throws
RuntimeException

if the payload cannot be encoded

Return values
string

        
On this page

Search results