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.8K All Categories
- 3 Private Company Board
- 1 APAC User Group
- 12 Welcome
- 39 Domo News
- 9.7K Using Domo
- 1.9K Dataflows
- 2.5K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 343 Workbench
- 260 Domo Best Practices
- 11 Domo Certification
- 465 Domo Developer
- 50 Domo Everywhere
- 106 Apps
- 717 New to Domo
- 85 Dojo
- Domopalooza
- 1.1K 日本支部
- 4 道場-日本支部へようこそ
- 27 お知らせ
- 64 Kowaza
- 299 仲間に相談
- 654 ひらめき共有