Funciones de JSON

Tabla de contenidos

  • json_decode — Decodifica un string JSON
  • json_encode — Retorna la representación JSON representation del valor dado
  • json_last_error_msg — Devuelve el string con el error de la última llamada a json_encode() o a json_decode()
  • json_last_error — Devuelve el último error que ocurrió
add a note add a note

User Contributed Notes 1 note

up
-15
giunta dot gaetano at sea-aeroportimilano dot it
7 years ago
Two pure-php implementations of the json protocol that might be of use, e.g. for php 4 installs where adding extensions is not an option or because of extra functionality can be found here:

http://sourceforge.net/projects/phpxmlrpc (look for the extras package)

http://mike.teczno.com/json.html

Of course, performance is abysmal compared to the php extension, written in highly optimized C code...
To Top