In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

How to parse a JSON-type string

Kopinski
6 - Meteoroid

All, assume I have a string which resembles JSON-type nested code, where a certain pattern of tags reoccurs, e.g.:

 

[

{"family":{"code":"#T#"},"values":[{"code":"3E3W","description":"texttext1"}]},{"family":{"code":"Series"},"values":[{"code":"XXXX_XX-XX","description":"desc_Text"}]},

{"family":{"code":"BS-"},"values":[{"code":"BTAA","description":"texttext2"}]},{"family":{"code":"Feature"},"values":[{"code":"XXXX-XXXX","description":"desc_Text"}]},

{"family":{"code":"....}]},...

]

 

Note: that string is in one column in each row of data, describes a product in various ways [#family] and can show 20+ish  individual features as per above.  

 

Question: how would I best process (parse) that string, so I could isolate each iteration (i.e. starting at "family") to then (in most cases) derive the text in the description

 

Thank you!

2 REPLIES 2
cmcclellan
14 - Magnetar

Look at the JSON Parse tool (in the Developer category) and see if that does what you're after 🙂 

DawnDuong
13 - Pulsar
13 - Pulsar

hi @Kopinski 

Check out the JSON Parse Tool, I think it can solve exactly what you need.

JSonparse.PNG

 

Labels
Top Solution Authors