Update resource.erl

Changed api_help:json_encode to lib_json:encode