maintenance file in json

A simpler approach to support json maintenance file. fixes #2