{"id":19610070,"url":"https://github.com/nfultz/rcppjson","last_synced_at":"2025-04-27T21:31:21.545Z","repository":{"id":72194395,"uuid":"152636396","full_name":"nfultz/RcppJson","owner":"nfultz","description":"json for Rcpp","archived":false,"fork":false,"pushed_at":"2018-10-20T21:52:21.000Z","size":112,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T03:41:24.301Z","etag":null,"topics":["json","r","rcpp"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/nfultz.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-10-11T18:21:25.000Z","updated_at":"2021-08-30T04:19:53.000Z","dependencies_parsed_at":"2023-05-31T07:30:46.879Z","dependency_job_id":null,"html_url":"https://github.com/nfultz/RcppJson","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/nfultz%2FRcppJson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2FRcppJson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2FRcppJson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfultz%2FRcppJson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfultz","download_url":"https://codeload.github.com/nfultz/RcppJson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251211890,"owners_count":21553376,"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":["json","r","rcpp"],"created_at":"2024-11-11T10:26:37.756Z","updated_at":"2025-04-27T21:31:21.528Z","avatar_url":"https://github.com/nfultz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RcppJson\n\nThis provides Niels Lohmann's excellent [json library](https://github.com/nlohmann/json) for Rcpp.  All credit goes to him.\n\n## Installation\n\n```\nremotes::install_github(\"nfultz/RcppJson\")\n```\n\nIt can also theoretically be used by a package by adding `LinkingTo: RcppJson` to your DESCRIPTION file\n\n\n## Motivating Example\n\nThis demonstrates creating a json directly, as well as parsing and dumping text.\n\n```\nsourceCpp(code='\n\n// [[Rcpp::depends(RcppJson)]]\n// [[Rcpp::plugins(cpp14)]]\n\n#include \u003cnlohmann/json.hpp\u003e\n\n// for convenience\nusing json = nlohmann::json;\n\n// [[Rcpp::export]]\nauto boxme(const int \u0026x) {\n\n\n  auto j2 = R\"(\n    {\n              \"happy\": true,\n              \"pi\": 3.141\n              }\n  )\"_json;\n\n  j2[\"x\"] = x;\n\n\n  return j2.dump();\n\n\n}          \n\n\n// [[Rcpp::export]]\nint unboxme(std::string x) {\n\n\n  json j2 = json::parse(x);\n\n  return j2[\"x\"];\n\n\n}          \n\n\n          \n')\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfultz%2Frcppjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfultz%2Frcppjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfultz%2Frcppjson/lists"}