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
- 10.6K All Categories
- 1 APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 339 Workbench
- 252 Domo Best Practices
- 11 Domo Certification
- 461 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 84 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 22 お知らせ
- 63 Kowaza
- 296 仲間に相談
- 649 ひらめき共有