SiddiqSoft.sip2json
2.5.6
See the version list below for details.
dotnet add package SiddiqSoft.sip2json --version 2.5.6
NuGet\Install-Package SiddiqSoft.sip2json -Version 2.5.6
<PackageReference Include="SiddiqSoft.sip2json" Version="2.5.6" />
<PackageVersion Include="SiddiqSoft.sip2json" Version="2.5.6" />
<PackageReference Include="SiddiqSoft.sip2json" />
paket add SiddiqSoft.sip2json --version 2.5.6
#r "nuget: SiddiqSoft.sip2json, 2.5.6"
#:package SiddiqSoft.sip2json@2.5.6
#addin nuget:?package=SiddiqSoft.sip2json&version=2.5.6
#tool nuget:?package=SiddiqSoft.sip2json&version=2.5.6
sip2json: A Focused SIP Parser for Modern C++
sip2json is a header-only Modern C++23 SIP protocol parser and serializer library designed with nlohmann::json as a first-class API metaphor for seamlessly converting SIP protocol messages to/from JSON for NoSQL databases and distributed event processing.
Documentation Site
The complete documentation, API reference, architecture guides, performance benchmarks, and interactive dependency charts are hosted on our documentation site:
- Quick Start & Integration
- Asynchronous Stream Parsing
- Performance & Benchmarks
- JSON Schema Metaphor
- API Reference
Quick Example
#include <iostream>
#include "siddiqsoft/sip2json.hpp"
using namespace siddiqsoft;
void onNetworkDataReceived(std::string& tcpReadBuffer)
{
// Asynchronously parse multiple SIP frames from buffer
sip2json::parseAsync(
tcpReadBuffer,
[](sipmessage&& msg) {
if (!msg.empty()) {
std::cout << "Parsed " << msg.getMethod() << " Call-ID: " << msg.getCallID() << "\n";
}
},
[](const sip2json_exception& ex, std::string::iterator& start, const std::string::iterator& end) {
std::cerr << "Parser warning: " << ex.what() << "\n";
}
);
// Note: sip2json::parseAsync automatically erases decoded messages from tcpReadBuffer.
}
Quick Integration
Using CPM
CPMAddPackage("gh:SiddiqSoft/sip2json#v0.0.0.0")
target_link_libraries(${PROJECT_NAME} INTERFACE sip2json::sip2json)
For full setup guides, submodules, and NuGet usage, visit the Integration Guide.
Configuration Options
sip2json provides the following CMake options when integrated into host projects:
| CMake Option | Default | Description |
|---|---|---|
sip2json_HEADERKEY_MODE_INSENSITIVE |
ON |
Enable RFC 3261 case-insensitive header key matching and normalization to canonical Pascal-Kebab-Case keys (Content-Length, Via, Call-ID, etc.) and compact form abbreviations (l, v, i, c, m, f, t, s, e). |
sip2json_BUILD_TESTS |
OFF |
Build CTest unit test suite. |
sip2json_BUILD_BENCHMARKS |
OFF |
Build Google Benchmark performance test suite. |
License
Licensed under the BSD 3-Clause License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
-
- nlohmann.json (>= 3.12.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on SiddiqSoft.sip2json:
| Repository | Stars |
|---|---|
|
ubisoft/Sharpmake
Sharpmake is an open-source C#-based solution for generating project definition files, such as Visual Studio projects and solutions, GNU makefiles, Xcode projects, etc.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 3.2.0 | 102 | 9/14/2026 |
| 3.1.5 | 109 | 9/9/2026 |
| 3.1.4 | 130 | 9/6/2026 |
| 3.1.3 | 125 | 9/6/2026 |
| 3.1.2 | 118 | 9/5/2026 |
| 3.1.1 | 121 | 9/5/2026 |
| 3.1.0 | 115 | 9/4/2026 |
| 3.0.1 | 113 | 9/4/2026 |
| 2.5.8 | 145 | 8/21/2026 |
| 2.5.7 | 136 | 8/21/2026 |
| 2.5.6 | 134 | 8/21/2026 |
| 2.5.5 | 139 | 8/19/2026 |
| 2.5.4 | 138 | 8/19/2026 |
| 2.5.3 | 137 | 8/19/2026 |
| 2.5.2 | 139 | 8/19/2026 |
| 2.5.1 | 145 | 8/19/2026 |
| 2.4.2 | 269 | 6/19/2026 |
| 2.4.1 | 252 | 5/23/2026 |
| 2.4.0 | 278 | 5/5/2026 |
| 2.3.3 | 277 | 5/4/2026 |
## v2.4 Release - Performance and Documentation Enhancements
### New Features
- **Constexpr Optimization**: Compile-time string constants for improved performance
- **Comprehensive Benchmarks**: 30+ benchmark tests including stress tests for large packets
- **HTML Benchmark Reports**: Professional performance analysis reports
- **Enhanced Documentation**: Complete API reference, architecture guide, and migration guide
### Improvements
- Optimized parsing with constexpr patterns
- High-frequency decode benchmarks for large packets
- Stress tests (100, 1000+ packet scenarios)
- Professional HTML and JSON benchmark reporting
- Streamlined documentation for better navigation
### Documentation
- **API Reference**: docs/API.md - Complete method documentation with examples
- **Architecture Guide**: docs/ARCHITECTURE.md - Design patterns and optimization
- **Documentation Index**: docs/INDEX.md - Quick navigation hub
For detailed release notes, visit: https://github.com/siddiqsoftware/sip2json/releases