# How to import Richtexts fields

**URL:** <https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [August 9, 2019, 8:47am UTC](https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331 "2019-08-09T08:47:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 9, 2019, 8:47am UTC](https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331/1 "2019-08-09T08:47:24Z")

</div>

Hi

I am trying to import json data to create documents.

Document has a RichText field. what data type should I use to get the value from json as rich text.

Thanks  
binay

---

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 20, 2019, 5:06am UTC](https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331/2 "2019-08-20T05:06:23Z")

</div>

I am able to do it as String.

---

<div class="post-metadata">

**Author:** ![machak](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/machak/32/1298_2.png) [@machak](https://community.bloomreach.com/u/machak)\
**Post date:** [August 20, 2019, 1:48pm UTC](https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331/3 "2019-08-20T13:48:34Z")

</div>

you need to create a node e.g my\_project\_namespace:description (or whatever your node name is)  
of hippostd:html primary type and set hippostd:content property as a string, it looks something like this

```
mydemoproject:description:
    jcr:primaryType: hippostd:html
    hippostd:content: YOUR_STRING
```

---

<div class="post-metadata">

**Author:** ![binaykumar.singh](https://avatars.discourse-cdn.com/v4/letter/b/cdc98d/32.png) [@binaykumar.singh](https://community.bloomreach.com/u/binaykumar.singh)\
**Post date:** [August 22, 2019, 3:17am UTC](https://community.bloomreach.com/t/how-to-import-richtexts-fields/1331/4 "2019-08-22T03:17:52Z")

</div>

Thanks for your help.
