added support for arbitrary json objects as annotations