JRegistryFormatJson::objectToString: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 4: | Line 4: | ||
Converts an object into a JSON formatted string. | Converts an object into a JSON formatted string. | ||
<source lang="php"> | <source lang="php"> | ||
| Line 38: | Line 38: | ||
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Registry|Registry]] | * {{JVer|11.1}} Subpackage [[API17:Subpackage_Registry|Registry]] | ||
* [[API17:JRegistryFormatJson::objectToString|Other versions of JRegistryFormatJson::objectToString]] | * [[API17:JRegistryFormatJson::objectToString|Other versions of JRegistryFormatJson::objectToString]] | ||
===User contributed notes=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JRegistryFormatJson::objectToString | category=JRegistryFormatJson::objectToString | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 03:35, 25 March 2017
JRegistryFormatJson::objectToString
Description
Converts an object into a JSON formatted string.
public function objectToString (
$object
$options=array
)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $object | object | Data source object. | |
| $options | array | array() | Options used by the formatter. |
- Returns string JSON formatted string.
- Defined on line 30 of libraries/joomla/registry/format/json.php
- Since

See also
JRegistryFormatJson::objectToString source code on BitBucket
Class JRegistryFormatJson
Subpackage Registry- Other versions of JRegistryFormatJson::objectToString
User contributed notes
Code Examples