Use of inherited fields when mapping json objects

Made use of inherited fields when mapping json objects, not just the declared fields.