# Query parameter defined as a JSON object in OpenAPI 3.0 is not imported properly in API documentation/collection

**URL:** <https://community.postman.com/t/query-parameter-defined-as-a-json-object-in-openapi-3-0-is-not-imported-properly-in-api-documentation-collection/26685>\
**Category:** Help Hub\
**Tags:** api-documentation, api, openapi, import, openapi-to-postmanv2\
**Created:** [August 12, 2021, 12:31pm UTC](https://community.postman.com/t/query-parameter-defined-as-a-json-object-in-openapi-3-0-is-not-imported-properly-in-api-documentation-collection/26685 "2021-08-12T12:31:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlathion-t2i](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jlathion-t2i](https://community.postman.com/u/jlathion-t2i)\
**Post date:** [August 12, 2021, 12:31pm UTC](https://community.postman.com/t/query-parameter-defined-as-a-json-object-in-openapi-3-0-is-not-imported-properly-in-api-documentation-collection/26685/1 "2021-08-12T12:31:04Z")

</div>

I am currently trying to import an OpenAPI 3.0.3 specification into Postman and I am facing an issue with the way the query parameters are imported when they are defined as a JSON object.

In my OpenAPI file, I have the following instructions:

```auto
      parameters:
        - in: query
          name: range
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/RangeCriteria"
              example: "{ \"from\": 0, \"to\": 20 }"
              #example:
              # from: 0
              # to: 20
          description: Allows implementing a pagination mechanism

```

```auto
components:
  schemas:
    RangeCriteria:
      type: object
      properties:
        from:
          type: integer
          format: int32
        to:
          type: integer
          format: int32

```

But after importing the file into Postman (version 8.10.0), the parameter is imported without any value

 ![2021-08-12 14_22_26](https://us1.discourse-cdn.com/getpostman/original/2X/3/377c5091a5f9832f0b88af731a9ad04af57fc634.png)

I tried several methods to define the parameter (specify exemple as string, as an object, at both parameter or schema level), but I was not able to get the expected result (I also tried using both Postman import advance settings for request parameters i.e. Schema or Example). The idea is to get the following definition of the query parameter:

```auto
range={"from": 0, "to": 20}

```

Is there something incorrect in the way I defined the parameter (it appears correctly using Swagger UI) ? Is the `content` property for `parameters` items not supported by Postman ?

Thanks for your help
