Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ArrayHash
  • ArrayList
  • Arrays
  • Callback
  • DateTime
  • FileSystem
  • Finder
  • Html
  • Image
  • Json
  • ObjectHelpers
  • ObjectMixin
  • Paginator
  • Random
  • Reflection
  • SafeStream
  • Strings
  • TokenIterator
  • Tokenizer
  • Validators

Interfaces

  • IHtmlString

Exceptions

  • AssertionException
  • ImageException
  • JsonException
  • RegexpException
  • TokenizerException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Json

JSON encoder and decoder.

Nette\Utils\Json uses Nette\StaticClass
Namespace: Nette\Utils
Located at Utils/Json.php
Methods summary
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
$options
Json::PRETTY

Returns

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

Decodes a JSON string.

Decodes a JSON string.

Parameters

$json
$options
Json::FORCE_ARRAY

Returns

mixed
mixed
Methods used from Nette\StaticClass
__callStatic(), __construct()
Constants summary
integer FORCE_ARRAY
#0b0001
integer PRETTY
#0b0010
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0