Filemeta json v12

Filestore/Filelog metadata output to JSON.

Worked on feedback given after a review from Victor. Hope all issues were addressed.
set unknown?