# Extract path from xml and json \[DONE\]

**URL:** <https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501>\
**Category:** Feature requests\
**Created:** [December 18, 2019, 6:41pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501 "2019-12-18T18:41:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cvo](https://community.easymorph.com/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@cvo](https://community.easymorph.com/u/cvo)\
**Post date:** [December 18, 2019, 6:41pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/1 "2019-12-18T18:41:14Z")

</div>

Greetings,

When we parse JSON, we have to choose the path in a picklist.  
Could we have a function that extract the content of this picklist.  
This way we could use loops in a module to parse the JSON without knowing in advance the available path.

Regards

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [December 18, 2019, 9:22pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/2 "2019-12-18T21:22:20Z")

</div>

Christophe,

hypothetically, that would be an action (say "Extract JSON/XML paths"). It would get a column with JSON values and produce a list of JSON/XML paths.

Can you provide an example how one can parse the JSON if such an action was available. I can't envision how it would work, but the case could be useful.

Thanks

---

<div class="post-metadata">

**Author:** ![cvo](https://community.easymorph.com/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@cvo](https://community.easymorph.com/u/cvo)\
**Post date:** [December 20, 2019, 10:29am UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/3 "2019-12-20T10:29:07Z")

</div>

I need a little time to prepare a business case.

---

<div class="post-metadata">

**Author:** ![cvo](https://community.easymorph.com/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@cvo](https://community.easymorph.com/u/cvo)\
**Post date:** [January 29, 2020, 2:30pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/4 "2020-01-29T14:30:54Z")

</div>

Hi Dmitry,

Here is an example  
I use it to audit excel files.

1. copy all the excel files of a directory to a temp directory
2. change extension to zip then unzip
3. go on each files to convert the XML data to a tabular mode
4. make back up file for audit and forensic purpose
5. clean temp dir[

As I can't put the xml path to extract to module then I have to create specific modules for each part of a source file.  
With the extraction of the path of XML/JSON files and the possibility to use a parameter for the path, then I would have only one EM project to extract any kind of office file and convert it in tabular mode

Regards

Extract xml excel.morph|attachment](upload://ekwoZqEMJeIywPQ6YfOYeCZ7Q1v.morph) (195.0 KB)

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [February 3, 2020, 12:19pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/5 "2020-02-03T12:19:10Z")

</div>

We will enable using parameters for the root XML Path in Parse/Import XML in v4.2.2 (end of February).

To obtain a list of all available XML paths, you can import/parse full XML with the option to make column names as full XML paths. The use the "Table metadata" column to produce a list of column names, which will the the a of full XML paths.

---

<div class="post-metadata">

**Author:** ![cvo](https://community.easymorph.com/letter_avatar_proxy/v4/letter/c/a88e57/32.png) [@cvo](https://community.easymorph.com/u/cvo)\
**Post date:** [February 4, 2020, 1:07pm UTC](https://community.easymorph.com/t/extract-path-from-xml-and-json-done/1501/6 "2020-02-04T13:07:00Z")

</div>

Thank You,

All these little details make the difference.

Regards
