Function csp::multiplayer::ComponentSchemasFromJson
Defined in File ComponentSchema.h
Function Documentation
-
csp::common::Array<ComponentSchema> csp::multiplayer::ComponentSchemasFromJson(const csp::common::List<csp::common::String> &JsonDocuments, csp::common::LogSystem &LogSystem)
Parses a list of JSON documents into an array of component schemas.
Each document is expected to be a JSON array of schema objects. Entries that fail to parse are skipped with a warning; valid entries in the same document are still returned.
- Parameters
JsonDocuments – One or more JSON documents, each containing an array of schema objects. The list is a wrapper generator workaround for passing large strings; in practice a single element is expected.
LogSystem – Logger for reporting skipped entries.
- Returns
An array containing all successfully parsed schemas.