# Collections sdk always shows empty Item object when importing from JSON

**URL:** <https://community.postman.com/t/collections-sdk-always-shows-empty-item-object-when-importing-from-json/27380>\
**Category:** Help Hub\
**Tags:** collections, sdk\
**Created:** [September 1, 2021, 4:26pm UTC](https://community.postman.com/t/collections-sdk-always-shows-empty-item-object-when-importing-from-json/27380 "2021-09-01T16:26:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nalin.agrawal11](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@nalin.agrawal11](https://community.postman.com/u/nalin.agrawal11)\
**Post date:** [September 1, 2021, 4:26pm UTC](https://community.postman.com/t/collections-sdk-always-shows-empty-item-object-when-importing-from-json/27380/1 "2021-09-01T16:26:00Z")

</div>

I have a json file, where I am using this json I receive from postman rest api -

```auto
{
    "info": {
        "_postman_id": "ac278c9e-d1d7-4a50-8d15-134de3de5e80",
        "name": "Types",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [{
        "name": "get",
        "id": "0bf436da-794b-45c7-adf5-32f0e7a70105",
        "protocolProfileBehavior": {
            "disableBodyPruning": true
        },
        "request": {
            "method": "POST",
            "header": [],
            "body": {
                "mode": "raw",
                "raw": "{\r\n \"userId\": {{userId}},\r\n \"projectId\": {{projectId}}\r\n}",
                "options": {
                    "raw": {
                        "language": "json"
                    }
                }
            },
            "url": {
                "raw": "http://localhost:9090/types/get",
                "protocol": "http",
                "host": ["localhost"],
                "port": "9090",
                "path": ["types", "get"]
            }
        },
        "response": []
    }]
}

```

Then I am using this code to create a collection object and iterate over items -

```auto
let Collection = require('postman-collection').Collection;

let collObj = JSON.stringify(fs.readFileSync('postmanapi.json').toString());
const collection = new Collection(collObj);
console.log(collection);

```

No matter what I try, I always end up with a collection object which has empty item object

`{"item":[],"event":[],"variable":[],"info":{"_postman_id":"f165a325-ba8a-4117-8fd3-c5e3e68369e1","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"}}`

How do I solve this? Thanks. Is this a version issue? I am using -  
`"postman-collection": "^4.1.0"`
