Problem: Forming JSON for API from Repeating Group
I need to send a list of exercises to an external API (LanguageTool Checker). Each exercise consists of three parts (before_blank_text , user_selected_answer , after_blank_text ). The exercise data (before_blank_text , after_blank_text ) is sourced from a Repeating Group (data source - external API Vercel JSON Parser ), and user_selected_answer is text entered by the user into an input field within each Repeating Group cell.
The API expects a JSON array in the following format:
{
"original_topic": "Grammaire B1",
"exercises": [
{
"before_blank_text": "...",
"user_selected_answer": "...",
"after_blank_text": "..."
},
// ...
]
}
Problem: I am unable to form this valid JSON array on the Bubble frontend.
Inability to access Input.value :Within the :format as text operator for the Repeating Group (when building the Body (JSON object) for the API call), I cannot retrieve the value of Current cell's Input Votre réponse's Input_reponse .
- Lack of
index in listForVercel_JSON_Parser body exerciseelements (which are not “Things” from the Bubble database), the:index in listoperator is unavailable. This prevents reliable matching of exercise data with user answers by order.
-“Invalid JSON” errors: All attempts at manually concatenating strings and usingjson_saferesult in invalid JSON and anOverall Request Body Parsing Error: Invalid JSONfrom the API. - JavaScript for DOM data collection proved unreliable and unworkable** in this Bubble context.
Question to the community - Given these limitations, what is the most reliable “Bubble-native” way to form such a JSON array from a Repeating Group (element data + input field value within that element) for sending to an external API? If Backend Workflows are necessary, how should they be correctly configured for data collection and formatting?