Lightweight quick and easy to use JSON-LD Module for Drupal.
Has basic options for content types and general org rendering if they are not selected.
Follows standards as outline here: https://developers.google.com/search/docs/guides/mark-up-content
Config at: admin/config/search/json-ld
json_ld_add_output($node, $data = NULL, $custom = FALSE);
This is useful if you are in a view or other multi node output situations. The $node var is the fully loaded $node object. The $data var is an array you make to pass it to add. ie: $data['tag'] = 'trill' The $custom var is if you want to skip node processing and add your own custom data.
function hook_json_ld_output_node_alter(&$data) {}
function hook_json_ld_output_default_alter(&$data) {}