Solved

JSON Reader Folder - Get File name

  • 2 April 2024
  • 3 replies
  • 23 views

Badge +3

I’m using the JSON reader to read in a folder of JSON files. The reader is working how I want it to, however I would like to get the original file path/name as an attribute on each feature. 

 

Is there an easy way to do this? I’m hoping that I am missing something silly. 

 

 

icon

Best answer by danilo_fme 2 April 2024, 19:18

View original

3 replies

Userlevel 5
Badge +30

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

Badge +3

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

Thanks Danilo! The filename without extension is in the fme_basename attribute, and the full file path is under fme_dataset. 

Userlevel 5
Badge +30

Hi @akoure_terracon 

 I think you that you can expose the format attribute fme_basename in Reader.

Thanks Danilo! The filename without extension is in the fme_basename attribute, and the full file path is under fme_dataset. 

You are wellcome!

Reply