Overview

Namespaces

  • Docta
    • MercadoLibre
      • Exception
      • OAuth2
        • Client
          • Test
  • GuzzleHttp
    • Cookie
    • Exception
    • Handler
    • Promise
      • Test
      • Tests
    • Psr7
    • Test
      • Handler
    • Tests
      • CookieJar
      • Event
      • Exception
      • Handler
      • Promise
      • Psr7
  • League
    • OAuth2
      • Client
        • Grant
          • Exception
        • Provider
          • Exception
        • Test
          • Grant
          • Provider
            • Exception
            • Fake
          • Token
          • Tool
        • Token
        • Tool
  • None
  • Psr
    • Http
      • Message

Classes

  • Client
  • HandlerStack
  • MessageFormatter
  • Middleware
  • Pool
  • PrepareBodyMiddleware
  • RedirectMiddleware
  • RequestOptions
  • RetryMiddleware
  • TransferStats
  • UriTemplate

Interfaces

  • ClientInterface

Functions

  • choose_handler
  • debug_resource
  • default_ca_bundle
  • default_user_agent
  • describe_type
  • headers_from_lines
  • is_host_in_noproxy
  • json_decode
  • json_encode
  • normalize_header_keys
  • uri_template
  • Overview
  • Namespace
  • Function
  • Download

Function json_encode

Wrapper for JSON encoding that throws when an error occurs.

Namespace: GuzzleHttp
Link: http://www.php.net/manual/en/function.json-encode.php
Located at src/functions.php
Parameters summary
mixed $value The value being encoded
integer $options = 0 JSON encode option bitmask
integer $depth = 512 Set the maximum depth. Must be greater than zero.
Return value summary
string string
Thrown exceptions summary
InvalidArgumentException if the JSON cannot be encoded.
MercadoLibre PHP SDK API documentation generated by ApiGen