Build typed objects from json.