some slight fixes to jsonmap