# error: use of undeclared identifier 'FJsonObject' when packaging pluging

**URL:** <https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-fjsonobject-when-packaging-pluging/454049>\
**Category:** Plugins\
**Tags:** buildcs, unreal-engine, json, Plugins, question\
**Created:** [August 18, 2019, 5:49pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-fjsonobject-when-packaging-pluging/454049 "2019-08-18T17:49:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d2be0ce1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d2be0ce1](https://forums.unrealengine.com/u/anonymous_user_d2be0ce1)\
**Post date:** [August 18, 2019, 5:49pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-fjsonobject-when-packaging-pluging/454049/1 "2019-08-18T17:49:10Z")

</div>

I’m developing a plugin, and have no issues when building a running a project using this plugin. When I try to package the plugin, however, I get this error: error: use of undeclared identifier ‘FJsonObject’

I’m including the Json module in my Build.cs file using this:

```
		PublicDependencyModuleNames.AddRange(
			new string[]
			{
				"Core",
				"Json",
				// ... add other public dependencies that you statically link with here ...
			}
			);

```

Is there a different way I should be including the Json module for packaging the plugin?

---

<div class="post-metadata">

**Author:** ![Spidermined](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spidermined](https://forums.unrealengine.com/u/Spidermined)\
**Post date:** [August 23, 2019, 7:07pm UTC](https://forums.unrealengine.com/t/error-use-of-undeclared-identifier-fjsonobject-when-packaging-pluging/454049/2 "2019-08-23T19:07:21Z")

</div>

Did you add `#include "JsonObject.h"` to your cpp or header file
