Feature/json document generator

Working json document generator, in the format of mapping.