Request : update JSON error msg with better one when PHP5.5+

Adds the JSON error message with json_last_error_msg() PHP5.5+ function.