{"id":15858061,"url":"https://github.com/fabioricali/json-success-response","last_synced_at":"2026-04-10T04:50:02.574Z","repository":{"id":96142066,"uuid":"102829776","full_name":"fabioricali/JSON-Success-Response","owner":"fabioricali","description":" A standard JSON API response","archived":false,"fork":false,"pushed_at":"2021-05-13T10:07:04.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T12:48:59.991Z","etag":null,"topics":["java","javascript","json","json-api","json-response","json-schema","nodejs","php","python","response"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabioricali.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-08T07:05:55.000Z","updated_at":"2021-05-13T10:07:07.000Z","dependencies_parsed_at":"2023-05-05T17:31:23.639Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/JSON-Success-Response","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FJSON-Success-Response","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FJSON-Success-Response/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FJSON-Success-Response/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2FJSON-Success-Response/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/JSON-Success-Response/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246705162,"owners_count":20820687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","javascript","json","json-api","json-response","json-schema","nodejs","php","python","response"],"created_at":"2024-10-05T20:43:31.733Z","updated_at":"2025-12-30T20:27:42.169Z","avatar_url":"https://github.com/fabioricali.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv\u003e\n\u003ch1\u003eJSON Success Response\u003c/h1\u003e\nMy JSON API standard response which can also be yours.\n\u003cbr/\u003e\u003cbr/\u003e\n\u003cimg src=\"https://img.shields.io/badge/JSON-Success%20Response-green.svg\" title=\"JSON Success Response\"/\u003e \u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\u003c/div\u003e\n\u003cbr/\u003e\u003cbr/\u003e\n\n Param|Type|Description\n -|-|-\n success|boolean| true if ok, false if error\n code|number| server status code\n message|string| server message\n result|string, number, boolean, array, object, null| response result\n time|string| response time in ISO standard\n\n ### Example\n #### Response ok\n```\nHTTP/1.1 200 OK\nContent-Type: application/json\n```\n```json\n{\n  \"success\": true,\n  \"code\": 200,\n  \"message\": \"OK\",\n  \"result\": 123,\n  \"time\": \"2017-08-30T09:59:00.846Z\"\n}\n```\n #### Response error\n```\nHTTP/1.1 401 Unauthorized\nContent-Type: application/json\n```\n```json\n{\n  \"success\": false,\n  \"code\": 401,\n  \"message\": \"Unauthorized\",\n  \"result\": null,\n  \"time\": \"2017-08-30T09:59:00.846Z\"\n}\n```\n\n### Author\nFabio Ricali\n\n### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fjson-success-response","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fjson-success-response","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fjson-success-response/lists"}