fix tabbing/spacing, parse map json