PHP Velho Oeste 2024

Fonctions JSON

Sommaire

  • json_decode — Décode une chaîne JSON
  • json_encode — Retourne la représentation JSON d'une valeur
  • json_last_error_msg — Retourne le message de la dernière erreur survenue lors de l'appel à la fonction json_encode() ou json_decode()
  • json_last_error — Retourne la dernière erreur JSON
  • json_validate — Checks if a string contains valid JSON
add a note add a note

User Contributed Notes 1 note

up
-85
giunta dot gaetano at sea-aeroportimilano dot it
17 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