Back to Joomla project (class list)

Class Json - list of methods

Joomla! Input JSON Class
This class decodes a JSON string from the raw request data and makes it available via the standard JInput interface.

Extends

Package: Joomla\CMS\Input
Copyright: (C) 2012 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/Input/Json.php
Project: Joomla

Method Summary

public
(array $source = null, array $options = array())

Constructor.
Parameters
  • array $source Source data (Optional, default is the raw HTTP input decoded from JSON)
  • array $options Array of configuration parameters (Optional)
Since
  • 3.0.1
Deprecated
  • 5.0
Show source code of this method: __construct Source Code

public string
()

Gets the raw JSON string from the request.
Returns
  • string The raw JSON string from the request.
Since
  • 3.0.1
Deprecated
  • 5.0
Show source code of this method: getRaw Source Code

Properties Summary

private string
$_raw
Since
  • 3.0.1
-
  • string

Tags Summary

Since
3.0.1
Deprecated
5.0
Use Joomla\Input\Json instead