title: Automatically create a json file which lists all images in a directory?
body: <p>I have a directory "files" on my webspace. In this directory are png-images, which may change frequently.</p>
  
  <p>The filenames need to be stored in a json file.</p>
  
  <p>Is there a way to automatically create a json file which lists all images in a directory in the following way:  </p>
  
  <pre><code>art_showWindow({"art":[
  {"href":"http://www.domain.example/files/art_noveau_1.png","title":"Art Noveau 1"},
  {"href":"http://www.domain.example/files/art_noveau_5.png","title":"Art Noveau 5"},
  {"href":"http://www.domain.example/files/art_noveau_23.png","title":"Art Noveau 23"},
  ]});
  </code></pre>
  
  <p>The title can of course just be a repetition of the filename if the above is too difficult.</p>
  
  <p>Is this somehow possible?</p>
  
  <p>Thanks in advance for your help.</p>
  
  <p>Thomas</p>