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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 299 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 730 Beast Mode
- 55 App Studio
- 40 Variables
- 682 Automate
- 175 Apps
- 451 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 34 Predict
- 14 Jupyter Workspaces
- 20 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 121 Manage
- 118 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive