{"id":18982303,"url":"https://github.com/rejchev/sm-jansson","last_synced_at":"2026-04-16T04:02:12.845Z","repository":{"id":44948483,"uuid":"432682241","full_name":"rejchev/sm-jansson","owner":"rejchev","description":"Json API implementation for SourceMod","archived":false,"fork":false,"pushed_at":"2025-10-27T14:19:39.000Z","size":418,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2025-11-11T04:09:37.304Z","etag":null,"topics":["any","csgo","css","extension","jansson","json","json-api","l4d","l4d2","sourcemod","tf2"],"latest_commit_sha":null,"homepage":"https://t.me/rosemound_tech","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rejchev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-11-28T10:34:10.000Z","updated_at":"2025-10-20T22:47:10.000Z","dependencies_parsed_at":"2025-01-01T11:42:08.297Z","dependency_job_id":"7bcbfa46-73fa-452c-a83a-36af9e9f7b73","html_url":"https://github.com/rejchev/sm-jansson","commit_stats":null,"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/rejchev/sm-jansson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rejchev%2Fsm-jansson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rejchev%2Fsm-jansson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rejchev%2Fsm-jansson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rejchev%2Fsm-jansson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rejchev","download_url":"https://codeload.github.com/rejchev/sm-jansson/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rejchev%2Fsm-jansson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870516,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"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":["any","csgo","css","extension","jansson","json","json-api","l4d","l4d2","sourcemod","tf2"],"created_at":"2024-11-08T16:13:03.056Z","updated_at":"2026-04-16T04:02:12.804Z","avatar_url":"https://github.com/rejchev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=center\u003eJansson\u003c/h1\u003e \n\u003cdiv align=center\u003e\n\n[![CI](https://github.com/rejchev/sm-jansson/actions/workflows/ci.yml/badge.svg)](https://github.com/rejchev/sm-jansson/)\n[![Downloads](https://img.shields.io/github/downloads/rejchev/sm-jansson/total?color=%2332c955)]()\n[![LICENSE](https://img.shields.io/github/license/rejchev/sm-jansson)](LICENSE)\n\n\u003c/div\u003e\n\n## About\nThis is an extension that implements Json API for SourceMod based on [Jansson](https://github.com/akheron/jansson) \n\n### Required dependencies\n\n- [SourceMod](https://www.sourcemod.net/downloads.php?branch=stable)\n\n### Supported OS\n- Windows\n- Linux\n\n### Supported SDK\n- Any\n\n## Getting Started\n\n### Installation\n\n1. Go on [releases](https://github.com/rejchev/sm-jansson/releases)\n2. Download release for your OS\n3. Unpack on your dedicated game server\n4. Congratulation 🥳\n\n\n## Usage\n\n### SourcePawn API\n \n```c\n// if u need to use simple json builder\n#define JSON_INCLUDE_BUILDER\n\n// lib\n#include \u003cjansson\u003e\n\n// some func\npublic void OnMapStart() {\n    \n    // empty JsonObject\n    Json jsonObject = new Json(\"{}\");\n    \n    // empty JsonArray\n    Json jsonArray = new Json(\"[]\");\n    \n    // { \n    //      \"array\": [\n    //          \n    //      ] \n    // }\n    asJSONO(jsonObject).Set(\"array\", jsonArray);\n    \n    delete jsonArray;\n    \n    // simple builder\n    jsonObject = asJSONB(jsonObject)\n        .SetInt(\"int\", 12)\n        .SetString(\"string\", \"rejchev\")\n        .SetFloat(\"float\", 111.111)\n        .SetInt64(\"int64\", \"9999999999999\")\n        .Build();\n    \n    // ...\n    \n    char buffer[1024];\n    if(!jsonObject.Dump(buffer, sizeof(buffer), JsonPretty(4)|JsonRealPrecision(3), true))\n        delete jsonObject;\n    \n    LogMessage(buffer);\n    \n    // output:\n    //\n    // { \n    //      \"array\": [\n    //          \n    //      ],\n    //      \"int\":  12,\n    //      \"string\":   \"rejchev\",\n    //      \"float\":    111.111,\n    //      \"int64\":    9999999999999\n    // }\n}\n```\nAnother example: [test.sp](https://github.com/rejchev/sm-jansson/blob/main/pawn/scripting/test.sp) \u003c/br\u003e\nMore information: [jansson.inc](https://github.com/rejchev/sm-jansson/blob/main/pawn/scripting/include/jansson.inc)\n\n### SourceMod Extension API\n```c++\n\n#include \u003cIJansson.h\u003e\n\nnJansson::IJansson* g_pJansson = nullptr;\n\nvoid Sample::SDK_OnAllLoaded()\n{\n\tSM_GET_LATE_IFACE(JANSSON, g_pJansson);\n}\n```\nHeader: [IJansson.h](https://github.com/rejchev/sm-jansson/blob/main/public/IJansson.h) \u003c/br\u003e\nMore information: [SourceMod WiKi](https://wiki.alliedmods.net/Writing_Extensions)\n\n\n## Contacts\n- [Telegram](https://t.me/rejsoft)\n\n## Donuts\n- BTC: ```1MFXSopgnJaZrcJ1t8Ydw9rHvKT13GLGsf```\n- USDT(TON): ```UQAuSiZ3Vbk6PNat69D_Nik-br63EI0kOmGsOXG3YDchmsJl```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frejchev%2Fsm-jansson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frejchev%2Fsm-jansson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frejchev%2Fsm-jansson/lists"}