Hi @sdirix,
Thank you for your response.
Weâre currently finalizing our functional flow, but itâs shaping up as follows:
- Data Retrieval: Initiate an API call to fetch JSON data.
- Schema Generation: Construct a JSON schema based on the API response and display it in the user interface (UI).
- UI Layout: Present the JSON schema on the left side of the UI, with an option for the user to select a template on the right side.
- Template Selection and Customization: Users choose a template (e.g., a list view) which displays with editable placeholder texts.
- Data Binding: Users bind template elements to JSON schema properties using a syntax involving â$â or â.â notation (e.g.,
entries.items.name
or $entries.items.name
).
- Preview and UI Schema Creation: After binding, users can preview the template displaying only the selected data fields from the API response. This step also generates a UI schema that can be stored in a database.
- Schema Utilization: The saved UI schema is retrieved on a separate page to replicate the preview, showcasing only the mapped data fields from the JSON response.
Does this workflow align with the capabilities of JSON Forms? Any suggestions or recommendations for implementation would be greatly appreciated.
Thank you.
Note: Our data could be very complex and dynamic. Iâm sharing one here :
{
"next_marker": "",
"limit": 100,
"order": { "by": "interacted_at", "direction": "DESC" },
"entries": [
{
"type": "recent_item",
"interaction_type": "item_preview",
"interacted_at": "2023-12-18T13:58:53+00:00",
"item": {
"type": "file",
"id": "1388195116451",
"file_version": {
"type": "file_version",
"id": "1521036470051",
"sha1": "a59d51d161b52196aebde4f9c1585c206a9b08a3"
},
"sequence_id": "0",
"etag": "0",
"sha1": "a59d51d161b52196aebde4f9c1585c206a9b08a3",
"name": "sample-wmv-file.wmv"
},
"interaction_shared_link": ""
},
{
"type": "recent_item",
"interaction_type": "item_preview",
"interacted_at": "2023-12-15T08:15:12+00:00",
"item": {
"type": "file",
"id": "1388195113292",
"file_version": {
"type": "file_version",
"id": "1521036370892",
"sha1": "c0ce6ad9a1c618722b8ec3779fdc4ef34cda5748"
},
"sequence_id": "1",
"etag": "1",
"sha1": "c0ce6ad9a1c618722b8ec3779fdc4ef34cda5748",
"name": "sample-pdf-download-10-mB.pdf"
},
"interaction_shared_link": ""
},
]
}
Please also find attached the template placeholder and preview wireframes :