Working with JSON in bubble feels so horribly dated and convoluted that I am convinced I’m missing something.
If you don’t want (or have a need) to parse on the backend via API/save to database to use the response in bubble, you’re either stuck with limited plugins, or - in order to handle anything with even the slightest complexity natively on the front end - you have to do something like:
- install a toolkit that allows bubble to ingest JS values (e.g. Javascript to Bubble (JS2B))
- create individual bubble functions for each element in the json that you want to work with
- write Javascript to parse yours JSON elements and assign each one to a function
- Concatenate any multidimensional arrays into strings so you can push them to a repeating group as text (e.g. bubble_fn_someFunction(someObject.map(o =>
${o.nestedElement1}|${o.nestedElement2}))- Use event triggered workflows for each JS2B to display its value list of concatenated strings to a repeating group
- Reparse each string (e.g., split by (|):first item) so you can display the elements from your array in the correct fields on your front end
- if you’re working with numbers, convert your strings back to numbers, (too bad if you’re working with most other non-text data types…)
I understand there are plugins to handle JSON, but there’s LOTS of limitations with those, especially handling more complex JSON. And I also understand there are some “tricks” (you can use the bubble App connector pointed at your own app to return data that can be handled within workflows, at a cost of unnecessary added latency & WU, but hey you don’t have to save to the database so that’s good i guess…). But you shouldn’t need “tricks” to do something this rudimentary.
Bottom line is handling JSON in Bubble is definitely cumbersome and the bottom line is anyone newly getting into no code development is going to balk at using a platform where handling the literal most common type of communication between systems is this bulky and unintuitive compared to other available solutions.
Wouldn’t Bubble’s investors want to prioritize removing this barrier to entry given all the competition that’s popped up over the last couple years?
OR ![]()
Am I just an idiot? Is there something I’ve somehow missed along my last couple years using bubble that is going to make me smack my head in shame for ranting like this? ![]()
