> 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

![](/files/-MihrcALmqCP5Yw9NAPm)

![](/files/-MihrakIXqiSVu9b7Q40) - [\[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;
