Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Diagnostics
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
      • Diagnostics
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • PhpGenerator
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
  • NetteModule
  • none

Classes

  • Arrays
  • Callback
  • FileSystem
  • Finder
  • Html
  • Json
  • LimitedScope
  • MimeTypeDetector
  • Neon
  • NeonEntity
  • Paginator
  • Strings
  • Validators

Exceptions

  • AssertionException
  • JsonException
  • NeonException
  • RegexpException
  • TokenizerException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class Json

JSON encoder and decoder.

Namespace: Nette\Utils
Author: David Grudl
Located at Utils/Json.php
Methods summary
final public
# __construct( )

Static class - cannot be instantiated.

Static class - cannot be instantiated.

public static string
# encode( mixed $value, integer $options = 0 )

Returns the JSON representation of a value.

Returns the JSON representation of a value.

Parameters

$value
mixed
$options
integer
accepts Json::PRETTY

Returns

string
public static mixed
# decode( string $json, integer $options = 0 )

Decodes a JSON string.

Decodes a JSON string.

Parameters

$json
string
$options
integer
accepts Json::FORCE_ARRAY

Returns

mixed
Constants summary
integer FORCE_ARRAY 1
#
integer PRETTY 2
#
Nette 2.1 API documentation generated by ApiGen 2.8.0