{"id":19542582,"url":"https://github.com/fable-compiler/fable.jsonprovider","last_synced_at":"2025-04-26T17:31:18.532Z","repository":{"id":39314682,"uuid":"172418389","full_name":"fable-compiler/Fable.JsonProvider","owner":"fable-compiler","description":"F# JSON Type Provider for Fable","archived":false,"fork":false,"pushed_at":"2025-01-22T06:43:05.000Z","size":783,"stargazers_count":28,"open_issues_count":1,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T16:42:06.349Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","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/fable-compiler.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}},"created_at":"2019-02-25T02:14:20.000Z","updated_at":"2024-09-25T14:00:13.000Z","dependencies_parsed_at":"2023-02-08T09:31:26.459Z","dependency_job_id":"defa0d2f-6e03-450c-ae05-d4da0a7cf848","html_url":"https://github.com/fable-compiler/Fable.JsonProvider","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/fable-compiler%2FFable.JsonProvider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2FFable.JsonProvider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2FFable.JsonProvider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2FFable.JsonProvider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fable-compiler","download_url":"https://codeload.github.com/fable-compiler/Fable.JsonProvider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251025753,"owners_count":21524856,"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-11-11T03:15:14.450Z","updated_at":"2025-04-26T17:31:18.242Z","avatar_url":"https://github.com/fable-compiler.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fable.JsonProvider\n\nSimple F# JSON Type Provider compatible with Fable. Currently tested with Fable 3 RC 11.\n\n## Testing\n\n```shell\ndotnet fsi build.fsx start\n```\n\n## Usage\n\n- First, install the package `Fable.JsonProvider` from Nuget.\n- Then generate your model using a JSON url, file path or literal string. You can construct instances with other strings at runtime and the compiler will make sure you only access properties according to the original sample.\n\n\u003e Please note there're currently **no runtime checks to validate the JSON**.\n\n```fsharp\ntype MyJson = Fable.JsonProvider.Generator\u003c\"\"\"{\n  \"foo\": 5,\n  \"bar\": [\"baz\"]\n}\"\"\"\u003e\n\nlet json = MyJson(\"\"\"{\"foo\": 10, \"bar\": [] }\"\"\")\nprintfn \"%.0f\" json.foo // prints 10\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Ffable.jsonprovider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffable-compiler%2Ffable.jsonprovider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Ffable.jsonprovider/lists"}