OEStructureMetadataFromJson
Attention
This API is currently available in C++ and Python.
bool OEStructureMetadataFromJson(OEStructureMetadata& metadata,
const std::string& json)
Populates an OEStructureMetadata object from a JSON-formatted string.
The function recognizes the following top-level fields in the JSON object:
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, resolved via |
|
object |
Nested object containing Iridium quality assessment data. |
|
array of objects |
Array of sequence segment objects, each parsed according to the fields documented in |
|
array of objects |
Array of heterogen objects, each parsed according to the fields documented in |
Unrecognized or missing fields are silently ignored. Returns true if the JSON string was
successfully parsed as an object; returns false if the string is not valid JSON or does
not represent a JSON object.
Code Example
See also
OEStructureMetadataToJsonfunctionOESequenceMetadataFromJsonfunctionOEHeterogenMetadataFromJsonfunctionOEStructureMetadataclassOEGetExperimentTypeIDfunction