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

Adds the JSON error message with json_last_error_msg() PHP5.5+ function.
this is wrong. we are not parsing anything here. We are encoding