{"id":61340,"library":"xpack","title":"xpack","description":"xpack is a C++ library for converting structs to/from JSON and XML.","status":"active","version":"1.0.6","language":"cpp","source_language":null,"source_url":null,"tags":["json","xml","serialization","struct"],"install":[{"cmd":"vcpkg install xpack","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(xpack CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE xpack::xpack)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"xpack/json.h","correct":"#include <xpack/json.h>"}],"quickstart":{"code":"#include \"xpack/json.h\"\n#include <cstdio>\nstruct Person {\n    std::string name;\n    int age;\n    XPACK(O(name, age));\n};\nint main() {\n    Person p = {\"Alice\", 30};\n    std::string json = xpack::json::encode(p);\n    printf(\"%s\\n\", json.c_str());\n    return 0;\n}","lang":"cpp","description":"Serialize a struct to JSON"},"warnings":[],"env_vars":null,"search_vec":"'c':5 'convert':8 'json':11,14 'librari':6 'serial':16 'struct':9,17 'to/from':10 'xml':13,15 'xpack':1,2","created_at":"2026-06-17T04:46:56.637895+00:00","updated_at":"2026-06-17T04:46:56.637895+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}