Ntb\RestAPI\JsonSerializer
Serializer for json.
- Author: Christian Blank <c.blank@notthatbad.net>
Synopsis
class JsonSerializer
extends SS_Object
implements
IRestSerializer
{
- // members
- private static boolean $is_active = true;
- private string $contentType = "application/json";
- // methods
- public string serialize()
- public void contentType()
- public boolean active()
Hierarchy
Members
private
- $contentType
—
string
The content type. - $is_active
Methods
public
- active() — Indicates if the serializer is active.
- contentType()
- serialize() — Serializes the given data into a json string.