snowplow/snowplow-javascript-tracker

View on GitHub
api-docs/docs/node-tracker/markdown/node-tracker.payloadbuilder.addjson.md

Summary

Maintainability
Test Coverage
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [PayloadBuilder](./node-tracker.payloadbuilder.md) &gt; [addJson](./node-tracker.payloadbuilder.addjson.md)

## PayloadBuilder.addJson property

Caches a JSON object to be added to payload on build

<b>Signature:</b>

```typescript
addJson: (keyIfEncoded: string, keyIfNotEncoded: string, json: Record<string, unknown>) => void;
```