Json-To-Form¶
The Json-To-Form module is a tool that allows you to convert JSON data into a form. The module is useful for creating
forms dynamically based on JSON data. The module is mainly used in the synQup Core project to create forms for JDM
configurations.
Usage¶
A JDM has to implement the JsonUiSchemaProvidingMessage interface. The interface contains a method getJsonSchema
that returns the JSON schema. The JSON schema is used to create the form.
Controller¶
The core contains a controller that returns the JSON schema of a JDM. The controller is named JsonSchemaUiController
and will return the JSON schema if it exists. Otherwise, it will return a 404 error.
The controller is connected to API Platform. Under src/API/CustomData/JsonSchema, you can find the controller and
the custom entity that is used to create the GET endpoint.