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

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?

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