SmartSpectra C++ SDK
Measure human vitals from video with SmartSpectra C++ SDK.
Loading...
Searching...
No Matches
json_envelope.hpp
1// json_envelope.hpp
2// Created by Greg on 1/30/25.
3// Copyright (C) 2025 Presage Security, Inc.
4//
5// SPDX-License-Identifier: LGPL-3.0-or-later
6
7#pragma once
8
9#include <string>
10#include <chrono>
11#include <google/protobuf/util/json_util.h>
12#include <physiology/modules/messages/status.pb.h>
13
14namespace presage::smartspectra {
15
23std::string BuildJsonEnvelope(
24 const std::string& type,
25 const std::string& json_payload,
26 int64_t timestamp_us
27);
28
34std::string BuildStatusPayload(const presage::physiology::StatusValue& status);
35
41std::string JsonEscape(const std::string& value);
42
47const google::protobuf::util::JsonPrintOptions& GetJsonOptions();
48
49} // namespace presage::smartspectra