# I hope Postman extends JSON faker.js to XML body

**URL:** <https://community.postman.com/t/i-hope-postman-extends-json-faker-js-to-xml-body/60078>\
**Category:** Help Hub\
**Tags:** faker-library\
**Created:** [April 18, 2024, 8:49am UTC](https://community.postman.com/t/i-hope-postman-extends-json-faker-js-to-xml-body/60078 "2024-04-18T08:49:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunar-module-parti13](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@lunar-module-parti13](https://community.postman.com/u/lunar-module-parti13)\
**Post date:** [April 18, 2024, 8:49am UTC](https://community.postman.com/t/i-hope-postman-extends-json-faker-js-to-xml-body/60078/1 "2024-04-18T08:49:42Z")

</div>

Hi all, like many I was happy to learn that the faker.js library is implemented out-of-the-box by Postman.

In Postman you can select JSON body content and get a faker dropdown with random data, like this:

1. Set your body to JSON, XML won’t work.

2. Type a variable, for example a string or integer. Double-click to select it.  
While still selected type `{{`  
While still selected type `$`

A faker library dropdown will appear, below I have picked guid from the dropdown.

> {  
> “Type”: “{{$guid}}”,  
> “Properties”: {  
> “id”: {  
> “type”: “integer”  
> },

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [May 18, 2024, 8:50am UTC](https://community.postman.com/t/i-hope-postman-extends-json-faker-js-to-xml-body/60078/2 "2024-05-18T08:50:29Z")

</div>

Closed on May 18, 2024, 8:50am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
