---
title: "packJson(): function in Reflection, TypeShade API reference"
description: "packJson, a function in Reflection. packModule already stringified, pretty-printed at two spaces…"
url: https://typeshade.dev/api/packjson/
language: en
---

# `packJson()`

Function in Reflection

packModule already stringified, pretty-printed at two spaces, the form a build step writes to disk or embeds in a generated module.

`import { packJson } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
function packJson(m: ModuleDecl): string
```

## Parameters

**`m` `ModuleDecl`**

## Return value

`string`

## See also

- [`packModule`](https://typeshade.dev/api/packmodule/)

## Source

[`src/compiler/ts/pack.ts`, line 53](https://github.com/typeshade/typeshade/blob/af54ddad5/src/compiler/ts/pack.ts#L53), at commit af54ddad5
