API16

JRegistryFormatJSON: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 1: Line 1:
{{subst:Description:JRegistryFormatJSON}}
===Defined in===
===Defined in===
libraries/joomla/registry/format/json.php
libraries/joomla/registry/format/json.php
Line 22: Line 20:




{{subst:SeeAlso:JRegistryFormatJSON}}
 


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=JRegistryFormatJSON
  category=JRegistryFormatJSON
  category=CodeExample
  namespace=CodeExample
  category=ClassExample
  category=ClassExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>

Latest revision as of 02:00, 25 March 2017

Defined in

libraries/joomla/registry/format/json.php

Methods

Method name Description
objectToString Converts an object into a JSON formatted string.

Unfortunately, there is no way to have ini values nested further than two levels deep. Therefore we will only go through the first two levels of the object.

stringToObject Parse a JSON formatted string and convert it into an object.

Importing

jimport( 'joomla.registry.format.json' );



Examples

Code Examples