Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
legacy_json_io.h File Reference
#include <momentum/character/collision_geometry.h>
#include <momentum/character/fwd.h>
#include <momentum/character/locator.h>
#include <momentum/math/fwd.h>
#include <nlohmann/json.hpp>
#include <span>
#include <string>

Go to the source code of this file.

Namespaces

namespace  momentum

Functions

Character momentum::loadCharacterFromLegacyJson (const std::string &jsonPath)
 Loads a Character from a legacy JSON format that was previously used by older Python libraries (and some other tools).
Character momentum::loadCharacterFromLegacyJsonBuffer (std::span< const std::byte > jsonBuffer)
 Loads a Character from a legacy JSON buffer.
Character momentum::loadCharacterFromLegacyJsonString (const std::string &jsonString)
 Loads a Character from a legacy JSON string.
void momentum::saveCharacterToLegacyJson (const Character &character, const std::string &jsonPath)
 Saves a Character to legacy JSON format.
std::string momentum::characterToLegacyJsonString (const Character &character)
 Converts a Character to legacy JSON string.
nlohmann::json momentum::characterToLegacyJson (const Character &character)
 Converts a Character to legacy JSON object.