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
- All Categories
- 1.4K Product Ideas
- 1.4K Ideas Exchange
- 1.4K Connect
- 1.1K Connectors
- 282 Workbench
- 3 Cloud Amplifier
- 4 Federated
- 2.8K Transform
- 86 SQL DataFlows
- 548 Datasets
- 2.2K Magic ETL
- 3.2K Visualize
- 2.3K Charting
- 544 Beast Mode
- App Studio
- 26 Variables
- 566 Automate
- 134 Apps
- 411 APIs & Domo Developer
- 21 Workflows
- DomoAI
- 28 Predict
- 12 Jupyter Workspaces
- 16 R & Python Tiles
- 345 Distribute
- 87 Domo Everywhere
- 257 Scheduled Reports
- 1 Software Integrations
- 85 Manage
- 84 Governance & Security
- 8 Product Release Questions
- Community Forums
- 41 Getting Started
- 27 Community Member Introductions
- 81 Community Announcements
- 4.8K Archive