Namespaces

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

Classes

  • Arrays
  • Finder
  • Html
  • Json
  • LimitedScope
  • MimeTypeDetector
  • Neon
  • NeonEntity
  • Paginator
  • Strings
  • Tokenizer
  • 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 )

Returns the JSON representation of a value.

Returns the JSON representation of a value.

Parameters

$value
mixed

Returns

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

Decodes a JSON string.

Decodes a JSON string.

Parameters

$json
string
$options
integer

Returns

mixed
Constants summary
integer FORCE_ARRAY 1
#
Nette 2.0 API documentation generated by ApiGen 2.8.0