[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/registry/src/Format/ -> Json.php (summary)

Part of the Joomla Framework Registry Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 78 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Json:: (2 methods):
  objectToString()
  stringToObject()


Class: Json  - X-Ref

JSON format handler for Registry.

objectToString($object, array $options = [])   X-Ref
Converts an object into a JSON formatted string.

param: object  $object   Data source object.
param: array   $options  Options used by the formatter.
return: string  JSON formatted string.

stringToObject($data, array $options = ['processSections' => false])   X-Ref
Parse a JSON formatted string and convert it into an object.

If the string is not in JSON format, this method will attempt to parse it as INI format.

param: string  $data     JSON formatted string to convert.
param: array   $options  Options used by the formatter.
return: object   Data object.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer