# Object to String

![](/files/-Miho3qyTJHI0RhZ8Roo)

![](/files/-Miho39ei5Ytxvn7xIsp) - [\[source code\]](https://github.com/ladybug-tools/honeybee-grasshopper-core/blob/master/honeybee_grasshopper_core/src//HB%20Object%20to%20String.py)

Serialize any honeybee object to a JSON text string. You can use "HB String to Object" component to load the objects from the file back.

Honeybee objects include any honeybee energy Material, Construction, ConstructionSet, Schedule, Load, ProgramType, or Simulation object.

### Inputs

* **hb\_obj \[Required]**

A Honeybee object to be serialized to a string.

### Outputs

* **hb\_str**

A text string that completely describes the honeybee object. This can be serialized back into a honeybee object using the "HB String to Object" coponent.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ladybug.tools/honeybee-primer/components/3_serialize/object_to_string.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
