# Form data style when importing swagger into postman

**URL:** <https://community.postman.com/t/form-data-style-when-importing-swagger-into-postman/25143>\
**Category:** Help Hub\
**Created:** [June 23, 2021, 3:40pm UTC](https://community.postman.com/t/form-data-style-when-importing-swagger-into-postman/25143 "2021-06-23T15:40:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tansaku](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tansaku/32/8993_2.png) [@tansaku](https://community.postman.com/u/tansaku)\
**Post date:** [June 23, 2021, 3:40pm UTC](https://community.postman.com/t/form-data-style-when-importing-swagger-into-postman/25143/1 "2021-06-23T15:40:06Z")

</div>

I’m noticing that when we import swagger docs (generated from [grape-swagger](https://github.com/ruby-grape/grape-swagger) ) into postman, that the formData seems to come in in x-www-form-urlencoded format, rather than as a json body - is there some import setting that affects this, or will it alwayws some in urlencoded format, e.g.

```auto
data[check_id]:<string>
data[amount_cents]:<integer>
data[card_id]:<string>
data[encrypted_payment_data]:<string>
data[tip_amount_cents]:0
data[credit_cents]:0

```

rather than

```auto
{
  "data": {
    "amount_cents": 0,
    "check_id": "<string>",
    "card_id": "<string>",
    "credit_cents": 900,
    "tip_amount_cents": 0
  }
}

```

here’s a snippet of the swagger:

```auto
"/public/payments": {
"post": {
"description": "Pay a check",
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"parameters": [
{
"in": "formData",
"name": "data[check_id]",
"description": "Check Unique Idenitifier",
"type": "string",
"required": true,
"example": "4d1d3aec-740c-46f2-93fb-b9eb5b2147ce"
},
{
"in": "formData",
"name": "data[amount_cents]",
"description": "Cents/Pennies to pay the check with from the card specified via card_id",
"type": "integer",
"format": "int32",
"required": true,
"example": 1000
},

```

I guess this is more related to they way in which the grape-swagger gem is generating the parameter part of the swagger, and postman is just following grape-swagger’s lead, but I would be very interested in folks opinions.

Many thanks in advance

---

<div class="post-metadata">

**Author:** ![tansaku](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tansaku/32/8993_2.png) [@tansaku](https://community.postman.com/u/tansaku)\
**Post date:** [June 23, 2021, 3:55pm UTC](https://community.postman.com/t/form-data-style-when-importing-swagger-into-postman/25143/2 "2021-06-23T15:55:51Z")

</div>

I’ve found the solution - [when importing swagger into postman I always get x-www-urlencoded body rather than json · Issue #829 · ruby-grape/grape-swagger · GitHub](https://github.com/ruby-grape/grape-swagger/issues/829#issuecomment-866961491)
