Adaptation to the new JSON-LD API.
Issue was mentioned in gh-152
fixed source to align with coding guidelines