> For the complete documentation index, see [llms.txt](https://docs.ladybug.tools/dragonfly-primer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ladybug.tools/dragonfly-primer/components/2_serialize/string_to_object.md).

# String to Object

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-116c8d16f966183a3c296d57b6f3360125d29ddb%2FString_to_Object.png?alt=media)

![](https://3405893330-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Ma9gBkJelXEQ5LsYEl7%2Fuploads%2Fgit-blob-203f0ded224bed94be41d353d758953dc17d925a%2FString_to_Object.png?alt=media) - [\[source code\]](https://github.com/ladybug-tools/dragonfly-grasshopper/blob/master/dragonfly_grasshopper/src//DF%20String%20to%20Object.py)

Serialize any dragonfly JSON text string back to a dragonfly object.

This includes any Model, Building, Story, Room2D, WindowParameter, or ShadingParameter.

It also includes any dragonfly energy Material, Construction, ConstructionSet, Schedule, Load, ProgramType, or Simulation object.

## Inputs

* **df\_str \[Required]**

  A text string that completely describes the dragonfly object.&#x20;

## Outputs

* **df\_obj**

  A Dragonfly object serialized from the input string.&#x20;
