{"id":15531181,"url":"https://github.com/mike-north/json-typescript","last_synced_at":"2025-04-06T16:13:13.327Z","repository":{"id":27562400,"uuid":"114420675","full_name":"mike-north/json-typescript","owner":"mike-north","description":"TypeScript type definitions for JSON objects","archived":false,"fork":false,"pushed_at":"2025-03-08T10:02:24.000Z","size":1219,"stargazers_count":30,"open_issues_count":11,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T02:03:57.879Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mike-north.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-12-15T23:56:09.000Z","updated_at":"2024-05-17T15:25:47.000Z","dependencies_parsed_at":"2024-04-14T09:30:08.086Z","dependency_job_id":"592caf0a-4fd6-4aee-964f-5f391dc258b6","html_url":"https://github.com/mike-north/json-typescript","commit_stats":{"total_commits":240,"total_committers":4,"mean_commits":60.0,"dds":"0.17500000000000004","last_synced_commit":"057f5f91a4a3fe481e3428a67bb65c51443a5305"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fjson-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fjson-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fjson-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mike-north%2Fjson-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mike-north","download_url":"https://codeload.github.com/mike-north/json-typescript/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247509236,"owners_count":20950232,"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":[],"created_at":"2024-10-02T11:25:09.672Z","updated_at":"2025-04-06T16:13:13.303Z","avatar_url":"https://github.com/mike-north.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# JSON-typescript \n\nTypeScript type information for compile-time validation of [JSON objects](https://www.json.org/).\n\n[![Build Status](https://travis-ci.org/mike-north/json-typescript.svg?branch=master)](https://travis-ci.org/mike-north/json-typescript)\n[![Version](https://img.shields.io/npm/v/json-typescript.svg)](https://www.npmjs.com/package/json-typescript)\n\n## How to use this\n\n1. Install this package\n```js\nnpm install --save-dev json-typescript\n```\n\n2. Import this package\n```ts\nimport * as _JSON from 'json-typescript';\n```\n\n3. Check to see if json types are validated correctly\n\n```ts\nimport * as { Value as JSONValue, Object as JSONObject } from 'json-typescript';\n\n// ✅ This should be OK\nlet doc: JSONValue = {\n  data: {\n    type: 'articles',\n    id: '1'\n  }\n};\n\n// ⛔️ This should NOT be OK ( functions are not allowed )\nlet doc: JSONValue = {\n  foo() {\n    return bar;\n  }\n};\n\n// ⛔️ This should NOT be OK ( Array is not a JSONObject )\nlet doc: JSONObject = [];\n```\n\n## Copyright\n\u0026copy; 2018 [Mike North](https://github.com/mike-north), All Rights Reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-north%2Fjson-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmike-north%2Fjson-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmike-north%2Fjson-typescript/lists"}