Simple JSON parsing
I have a field in a table that contains values stored in a JSON string like this:
{"enabled":true,"timeout":220,"timeout_buffer":1}
There are other fields in the table as well but only one of them contains JSON values. I would like to parse out the values into appropriately named columns, ie. create new columns called 'enabled', 'timeout', and 'timeout_buffer' each containing the associated values.
What is the best way to achieve this in Domo (I'm new). The data is being pulled from a mySQL connector, so I could always do it with a clunky query, but I was more interested in seeing what tools Domo provides to achieve similar things as we're currently evaluating the product. I tried doing it in an ETL process, but it required a LOT of steps and relied on the order of the JSON keys always being the same.
Comments
-
I tried to experiment as it seemed interesting but couldn't quite get it there but you most likely would have to do this in a dataflow like a MySQL dataflow.
I was looking at things like this for reference.
https://stackoverflow.com/questions/39906435/convert-json-array-in-mysql-to-rows
**Make sure to like any users posts that helped you and accept the ones who solved your issue.**0
Categories
- 7.7K All Categories
- 3 Connect
- 919 Connectors
- 244 Workbench
- 477 Transform
- 1.8K Magic ETL
- 60 SQL DataFlows
- 446 Datasets
- 37 Visualize
- 198 Beast Mode
- 2K Charting
- 8 Variables
- 1 Automate
- 348 APIs & Domo Developer
- 82 Apps
- Workflows
- 14 Predict
- 3 Jupyter Workspaces
- 11 R & Python Tiles
- 241 Distribute
- 59 Domo Everywhere
- 241 Scheduled Reports
- 15 Manage
- 36 Governance & Security
- 27 Product Ideas
- 1.1K Ideas Exchange
- Community Forums
- 14 Getting Started
- 1 Community Member Introductions
- 49 Community News
- 18 Event Recordings
- 579 日本支部