{"id":23524210,"url":"https://github.com/alxbilger/jsonreader","last_synced_at":"2025-08-10T04:06:27.899Z","repository":{"id":89691977,"uuid":"555426490","full_name":"alxbilger/JsonReader","owner":"alxbilger","description":"SOFA plugin adding the ability to read SOFA scenes written in the json format","archived":false,"fork":false,"pushed_at":"2023-02-23T15:25:20.000Z","size":2204,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-13T14:46:44.567Z","etag":null,"topics":["json","sofa-framework"],"latest_commit_sha":null,"homepage":"https://alxbilger.github.io/JsonReader/","language":"C++","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/alxbilger.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,"zenodo":null}},"created_at":"2022-10-21T14:55:44.000Z","updated_at":"2023-02-23T12:54:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"0df774ab-b8e1-401e-b46a-95bffb9a9099","html_url":"https://github.com/alxbilger/JsonReader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alxbilger/JsonReader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxbilger%2FJsonReader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxbilger%2FJsonReader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxbilger%2FJsonReader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxbilger%2FJsonReader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alxbilger","download_url":"https://codeload.github.com/alxbilger/JsonReader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alxbilger%2FJsonReader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269673704,"owners_count":24457186,"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-08-10T02:00:08.965Z","response_time":71,"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":["json","sofa-framework"],"created_at":"2024-12-25T18:14:58.962Z","updated_at":"2025-08-10T04:06:27.890Z","avatar_url":"https://github.com/alxbilger.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![status](https://github.com/alxbilger/JsonReader/actions/workflows/ci.yml/badge.svg)\n[![docs](https://github.com/alxbilger/JsonReader/actions/workflows/doc.yml/badge.svg)](https://alxbilger.github.io/JsonReader/)\n\n\u003cp align=\"center\"\u003e\n \u003cimg width=\"467px\" height=\"200px\" src=\"https://github.com/alxbilger/JsonReader/blob/main/docs/sphinx/JsonReader-logo.png?raw=true\" align=\"center\" alt=\"JsonReader\" /\u003e\n \u003ch2 align=\"center\"\u003eJsonReader\u003c/h2\u003e\n \u003cp align=\"center\"\u003eSOFA plugin adding the ability to read SOFA scenes written in the json format\u003c/p\u003e\n\u003c/p\u003e\n\n# Usage\n\n```\nrunSofa -l JsonReader path/to/scene.json\n```\n\n# Examples\n\nExamples are provided in the `scenes` folder.\nA SOFA scene written in json looks like:\n\n```json\n{\n  \"Node\": {\n    \"name\": \"root\",\n    \"dt\": \"0.02\",\n    \"gravity\": \"0 -10 0\",\n    \"printLog\": \"true\",\n    \"Node\": {\n      \"name\": \"plugins\",\n      \"RequiredPlugin\":[\n        {\"name\":\"Sofa.Component.Constraint.Projective\"},\n        {\"name\":\"Sofa.Component.Engine.Select\"},\n        {\"name\":\"Sofa.Component.LinearSolver.Direct\"},\n        {\"name\":\"Sofa.Component.Mass\"},\n        {\"name\":\"Sofa.Component.ODESolver.Backward\"},\n        {\"name\":\"Sofa.Component.SolidMechanics.FEM.Elastic\"},\n        {\"name\":\"Sofa.Component.StateContainer\"},\n        {\"name\":\"Sofa.Component.Topology.Container.Grid\"},\n        {\"name\":\"Sofa.Component.Visual\"}\n      ]\n    },\n    \"VisualStyle\": { \"displayFlags\": \"showBehaviorModels showForceFields\" },\n    \"DefaultAnimationLoop\": { \"name\": \"animationLoop\" },\n    \"DefaultVisualManagerLoop\": { \"name\": \"visualLoop\" },\n    \"EulerImplicitSolver\": {\n      \"name\": \"odesolver\",\n      \"rayleighStiffness\": \"0.1\",\n      \"rayleighMass\": \"0.1\"\n    },\n    \"MechanicalObject\": { \"name\": \"DoFs\" },\n    \"UniformMass\": {\n      \"name\": \"mass\",\n      \"totalMass\": \"320\"\n    },\n    \"RegularGridTopology\": {\n      \"name\": \"grid\",\n      \"nx\": \"4\",\n      \"ny\": \"4\",\n      \"nz\": \"20\",\n      \"xmin\": \"9\",\n      \"xmax\": \"6\",\n      \"ymin\": \"0\",\n      \"ymax\": \"3\",\n      \"zmin\": \"0\",\n      \"zmax\": \"19\"\n    },\n    \"BoxROI\": {\n      \"name\": \"box\",\n      \"box\": \"10 -1 -0.0001  -5 4 0.0001\"\n    },\n    \"FixedConstraint\": { \"indices\": \"@box.indices\" },\n    \"EigenSimplicialLDLT\": {\n      \"template\": \"CompressedRowSparseMatrixMat3x3d\",\n      \"ordering\": \"Natural\"\n    },\n    \"HexahedronFEMForceField\": {\n      \"name\": \"FEM\",\n      \"youngModulus\": \"4000\",\n      \"poissonRatio\": \"0.3\",\n      \"method\": \"large\"\n    }\n  }\n}\n```\n\n# Compilation\n\nSee documentation on the SOFA website to compile an external plugin: https://www.sofa-framework.org/community/doc/plugins/build-a-plugin-from-sources/\n\n## Dependencies\n\nOnly SOFA is a dependency\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxbilger%2Fjsonreader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falxbilger%2Fjsonreader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falxbilger%2Fjsonreader/lists"}