Navigation
API > API/Runtime > API/Runtime/JsonUtilities > API/Runtime/JsonUtilities/FJsonSchemaGenerator
Description
String output variant of FPropertyToJsonSchemaObject() (see above.)
Provides JSON string instead of JSON object.
| Name | FPropertyToJsonSchemaString |
| Type | function |
| Header File | /Engine/Source/Runtime/JsonUtilities/Public/JsonSchema/JsonSchemaGenerator.h |
| Include Path | #include "JsonSchema/JsonSchemaGenerator.h" |
| Source | /Engine/Source/Runtime/JsonUtilities/Private/JsonSchema/JsonSchemaGenerator.cpp |
static FString FPropertyToJsonSchemaString
(
TNotNull< const FProperty * > Property,
const FJsonSchemaPropertyFilter & PropertyFilter,
const FJsonSchemaEditorMetadata * CachedEditorMetadata,
const int32 Indent,
const bool bPrettyPrint
)
Schema for the property, as a JSON string.
Parameters
| Name | Remarks |
|---|---|
| Property | The property to build a schema for. |
| PropertyFilter | Determines how to filter collected struct and property data. |
| CachedEditorMetadata | If valid, use this metadata instead of collecting it. Otherwise, it will be automatically collected (if running in Editor context.) This is optional, and used for workflows that have cached metadata from an earlier process. |
| Indent | How many additional tabs to add to the json serializer output. |
| bPrettyPrint | Option to use pretty print (e.g., adds line endings), otherwise condensed print. |