{"id":18847777,"url":"https://github.com/jacobwilliams/namelist2json","last_synced_at":"2025-10-15T03:38:42.918Z","repository":{"id":146678559,"uuid":"101134576","full_name":"jacobwilliams/namelist2json","owner":"jacobwilliams","description":"Converting a Fortran namelist to JSON","archived":false,"fork":false,"pushed_at":"2024-01-07T03:12:21.000Z","size":636,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T08:09:43.465Z","etag":null,"topics":["fortran","fortran-package-manager","json","namelist"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacobwilliams.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-08-23T03:40:49.000Z","updated_at":"2024-08-13T12:09:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ef6d5ef-47bf-4f76-9e10-6f9e905ec7d4","html_url":"https://github.com/jacobwilliams/namelist2json","commit_stats":{"total_commits":18,"total_committers":1,"mean_commits":18.0,"dds":0.0,"last_synced_commit":"3603afd2dd3417cec885f2bd49be0965023d33bc"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jacobwilliams/namelist2json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobwilliams%2Fnamelist2json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobwilliams%2Fnamelist2json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobwilliams%2Fnamelist2json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobwilliams%2Fnamelist2json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobwilliams","download_url":"https://codeload.github.com/jacobwilliams/namelist2json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobwilliams%2Fnamelist2json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279043629,"owners_count":26091503,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["fortran","fortran-package-manager","json","namelist"],"created_at":"2024-11-08T03:09:37.418Z","updated_at":"2025-10-15T03:38:42.881Z","avatar_url":"https://github.com/jacobwilliams.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Description\n\nA basic module for parsing Fortran namelists and converting them to a JSON data structure. It is written in modern Fortran.\n\nNote that the parser is very simple and only works on a subset of valid namelist files. It may be expanded in the future.\n\nThe namelist must be formatted like so:\n\n```fortran\n \u0026NAMELIST_NAME\n var1%A = 3,\n var1%B = true,\n var1%C(1) = '1',\n var1%C(2) = '1',\n var1%C(3) = '1',\n var1%E = 'a string',\n var1%F%G = 0,\n var1%H(2)%I = 2.0,\n var2%J%K = F\n /\n```\n\nEach variable must be on only one line. The value to the right of the `=` sign must be an integer, real, logical, or string. Multiple namelines per file are allowed.\n\nThe example above would be converted into the JSON file:\n```javascript\n{\n  \"namelist_name\": {\n    \"var1\": {\n      \"a\": 3,\n      \"b\": true,\n      \"c\": [\"1\", \"1\", \"1\"],\n      \"e\": \"a string\",\n      \"f\": {\n        \"g\": 0\n      },\n      \"h\": [\n        null,\n        {\n          \"i\": 0.2E+1\n        }\n      ]\n    },\n    \"var2\": {\n      \"j\": {\n        \"k\": false\n      }\n    }\n  }\n}\n```\n\n## Compiling\n\nA `fpm.toml` file is provided for compiling namelist2json with the [Fortran Package Manager](https://github.com/fortran-lang/fpm). For example, to build:\n\n```\nfpm build --profile release\n```\n\nTo run the unit tests:\n\n```\nfpm test\n```\n\nTo use `namelist2json` within your fpm project, add the following to your `fpm.toml` file:\n```toml\n[dependencies]\nnamelist2json = { git=\"https://github.com/jacobwilliams/namelist2json.git\" }\n```\n\nor, to use a specific version:\n```toml\n[dependencies]\nnamelist2json = { git=\"https://github.com/jacobwilliams/namelist2json.git\", tag = \"1.0.0\"  }\n```\n\nTo generate the documentation using [ford](https://github.com/Fortran-FOSS-Programmers/ford), run: `ford ford.md`\n\n### Third-Party requirements\n\nThis project requires [json-fortran](https://github.com/jacobwilliams/json-fortran), which will be downloaded by `FPM`.\n\n## Documentation\n\nThe latest API documentation for the `master` branch can be found [here](https://jacobwilliams.github.io/namelist2json/). This was generated from the source code using [FORD](https://github.com/Fortran-FOSS-Programmers/ford).\n\n### Development\n\nThis project is hosted on GitHub at: https://github.com/jacobwilliams/namelist2json\n\n### License\n\nThis library is released under a permissive BSD-3 license.\n\n### See also\n\n * To do a similar thing using Python, you could use [f90nml](https://github.com/marshallward/f90nml).\n * [fast-namelist](https://github.com/jacobwilliams/fast-namelist)\n * [JSON-Fortran](https://github.com/jacobwilliams/json-fortran)\n * [fortran-csv-module](https://github.com/jacobwilliams/fortran-csv-module)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobwilliams%2Fnamelist2json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobwilliams%2Fnamelist2json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobwilliams%2Fnamelist2json/lists"}