Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
legacy_json_io.cpp File Reference

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.