replaced json gem. getnarrower and getbroader concepts, fixes