CSV to JSON converter
Converts a CSV file to a usable dictionary that Shortcuts can use by a Pythonista script.
Description
- This shortcut REQUIRES the app Pythonista to run.
- Receives CSV file content and returns a list (array) of dictionaries that Shortcuts can use (JSON).
- This is intended to be used as a module in other Shortcuts.
- So, use a “Run Shortcut” step to run this, and then the following step should probably be a repeat with each to do something with each field.
- This is a much more reliable CSV parser rather than using a split text by comma, and deals with commas and line breaks in fields, for example.
Feedback
Log in or sign up to leave feedback.
@Jwilson
I would love to use this but I received an index error (list index out of range) from Pythonista. Since Python is a little outside of my wheel house, I’m stuck. The error is on line 3 if that helps :-).
· 7 months, 2 weeks ago
· 7 months, 2 weeks ago
@Jwilson
Does this shortcut work properly under iOS 13?
· 7 months, 1 week ago
· 7 months, 1 week ago