Define has_target
Create and use JsonLd renderer in API
Use `in dir(obj)` rather than hasattr