Added a json_encode implementation for PHP < 5.2 (free.fr)

Added a conditionnal json_encode implementation to get autocomplete on PHP < 5.2