OEStructureMetadataToJson
Attention
This API is currently available in C++ and Python.
std::string OEStructureMetadataToJson(const OEStructureMetadata& metadata,
const bool prettyPrint = true)
Serializes an OEStructureMetadata object to a JSON-formatted string.
The resulting JSON object contains the following top-level fields:
Field |
Type |
Description |
|---|---|---|
|
string |
Identifier for the structure (e.g. PDB accession code). |
|
string |
Name of the structure’s depositing author. |
|
array of strings |
Keywords describing the structure. |
|
string |
Date of the most recent revision. |
|
string |
Revision version label. |
|
string |
Date the experiment was performed. |
|
string |
Experiment method name, as returned by |
|
object |
Nested object containing Iridium quality assessment data. |
|
array of objects |
Array of sequence segment objects, each with the fields documented in |
|
array of objects |
Array of heterogen objects, each with the fields documented in |
The prettyPrint argument controls formatting: when true (the default) the JSON is
indented for readability; when false a compact single-line representation is produced.
Code Example
See also
OEStructureMetadataFromJsonfunctionOESequenceMetadataToJsonfunctionOEHeterogenMetadataToJsonfunctionOEStructureMetadataclassOEGetExperimentTypeNamefunction