### Method

# Tracker Resource print_jsonld

deprecated: 3.5

#### Declaration [src]

    char*
    tracker_resource_print_jsonld (
      TrackerResource* self,
      TrackerNamespaceManager* namespaces
    )

#### Description [src]

Serialize all the information in `resource` as a JSON-LD document.

See http://www.jsonld.org/ for more information on the JSON-LD serialization format.

The `namespaces` object is used to expand any compact URI values. In most cases you should pass the one returned by `tracker_sparql_connection_get_namespace_manager()` from the connection that is the intended recipient of this data.

Deprecated since: 3.5

Use `tracker_resource_print_rdf()` instead.

#### Parameters

`namespaces`

  Type: `TrackerNamespaceManager`

  A set of prefixed URLs, or `NULL` to use the Nepomuk set.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `char*`

A newly-allocated string containing JSON-LD data.

The caller of the method takes ownership of the data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.