Use the format as JSON-safe
operator instead of double quotes. This will default to JSON safe values when no value is given as well as escape any JSON breaking characters in your data.
@rico.trevisan Like this:
Thank you @eli
But I am unable to actually see the results of reformatting the JSON because I am still getting the outage issue anytime I use the action Create a CSV from JSON (again, this does not happen with Create a Dynamic CSV file).
Sorry, we are experiencing a temporary outage and were unable to complete your request. Weâre working to get it right, please try again in a while!
It would be helpful if you could update the plugin page because that is what I followed to get my original, incorrect JSON formatting.
@april I will often build out my expression for creating the JSON in a text element on a test page so I can see the results. You can then copy that into something like JSON Lint and see if there are any errors. Probably the next step to trouble shoot here.
The actual error of a âtemporary outageâ i havenât seen before. That seems like a Bubble error.
And noted on the documentation. I see exactly what you are saying there. Will update.
Yup. Fixed that thks
Thanks. It has worked this time with your suggestion. Since it was working earlier too and breaking sometimes, I need. to see if it continues working. I hope it does.
Important point to remember for others who are reading this is that format as json safe
should be done on individual fields and remove the double quotes around them. Not to do format as json-safe
on the generated JSON.
Cant find this video, not working for me.
Im trying to ad headers to CSV from the create CSV from JSON action
@eli or @davidb or anyone else. I must be missing something obvious, but on the server side action, after âCSV Creator - New File from Base64â whether private or not I am stuck with a link to the file that doesnât work when I try to download it because it has the following text prepended to the file url and then a " after the file url.
https://bubble.io/"// [file_url].csv "
NOTE: in file manager the file is there with the proper link
I would appreciate it if anyone could point me to what might be causing the file url to be messed up like this.
I donât follow all the details of what youâre seeking to accomplish or have tried. Also, I donât have experience using this pluginâs base64-related actions. Nonetheless, in case itâs helpful, hereâs my implementation for using JSON to create a CSV file, a copy of whic is then attached to a thing, followed by the original CSV file being deleted.
-
Send JSON to CSV Creator
action from this plugin.
(I annotated the property names because theyâre not appearing correctly on their own.) -
When CSV Creator has created your file
event from this plugin.
-
File Upload
action from File Uploader Bubble API plugin, currently maintained by @Thimo (see also forum thread).
-
Delete an uploaded file
standard Bubble action.
thanks that is very very helpful. Appreciated.
The quotes is simply how Bubble returns the created file. Simplest solution is to add a find & replace
action that finds a double quote and replaces it with nothing.
Thanks, @eli and @davidb. Resolve the file issue with your suggestions and then tossing out the ZQ download plugin that was acting up.
Awesome plugin @eli
Do you think that the many times requested solution of handling UTF-8 characters is soon going to be supported? I also have problems with German âUmlauteâ and special characters like Ă¶Ă€ĂŒ or Ă
Forking and maintaining the plugin could work but brings in some overhead I think could be avoided.
Thank you very much!
Cheers
@hi_bubble This is now live. Please update to version 3.8.
Iâve tested with the following JSON and its exporting all characters correctly. Cheers!
[
{
"name": "Françoise",
"language": "Français"
},
{
"name": "Björn",
"language": "Svensk"
},
{
"name": "MĂĄrio",
"language": "PortuguĂȘs"
},
{
"name": "MĂŒller",
"language": "Deutsch"
},
{
"name": "SĂžren",
"language": "Dansk"
},
{
"name": "Ćukasz",
"language": "Polski"
},
{
"name": "PÇng",
"language": "äžćœ"
},
{
"name": "à€°à€Ÿà€à„à€¶",
"language": "à€čà€żà€šà„à€Šà„"
},
{
"name": "ÎλÎΜη",
"language": "ÎλληΜÎčÎșÎŹ"
},
{
"name": "Đ€ŃĐŽĐŸŃ",
"language": "Đ ŃŃŃĐșĐžĐč"
},
{
"name": "NĂșñez",
"language": "Español"
},
{
"name": "ĂaÄrı",
"language": "TĂŒrkçe"
}
]
Hey there @eli
Iâve been trying to use CREATE CSV FROM JSON without success.
The user should be able to download a financial projection of sales of diferente (ROWS) products and services.
Whats odd is that the CSV wonât generate more than 3 columns .
Here is a screenshot of my workflow and JSON
This is the result of the CSV downloaded:
Iâm getting month 1 and month 5 of my financial projection but not everysingle column for each month as Iâve requested in screenshot one.
And this what the JSON looks like when using the DEBUGGER step-by-step
The financial projection goes up to 12 months.
Any ideas?
I saw the video âBubble - CSV Creator - How to avoid timeouts by building your JSON using backend workflows.â But donât think is necessary for my use case.
The reason itâs only generating 3 columns is that you have the same key defined for months 2-5 which is simply a space. When that json is parsed into columns thereâs only three results.
Youâll need to define each month with a unique key.
Thank you @eli! Sometimes one does not see the obvious things.
Now working well.
Love this plugin. After struggling with CSV export solutions and coming up with hacky methods to make them work, I wish I would have found this years ago. Thank you
Hey @stephencharles,
Were you able to figure this one out?
Hi @eli ,
First thank you for this amazing plugin!!
Once my user import the csv file, I want to calculate the distance between two geographic places that they would input in the CSV. Do you know how I can do that? I canât find a way of getting data with geographic format when importing the csv in bubbleâŠ