SproutCMS

This is the code documentation for the SproutCMS project

function out()

Outputs the JSON data (encoded) + correct mime type, then stops script execution

Usage

void Json::out ( mixed $data [, int $options ] );

Arguments

  1. mixed $data
    Any kind of data to be JSON encoded
  2. int $options = 0
    E.g. JSON_PRETTY_PRINT, as per http://php.net/manual/en/function.json-encode.php

Return value

  • void
    This function calls echo