Missing member name

Why am I getting “missing member name” warning in Visual Studio when creating the below JSON file for importing into bitwarden

{
{
        "encrypted": false,
        "folders": [ "top level / folder1" ],
        "items": [
            {
                "organizationId": "asdcx",
                "folderId": null,
                "type": 1,
                "reprompt": 0,
                "name": "asc Hardware",
                "notes": null,
                "favorite": false,
                "fields": [
                    {
                        "name": "first customer field",
                        "value": "1",
                        "type": 0,
                        "linkedId": null
                    },
                    {
                        "name": "second custom field",
                        "value": "2",
                        "type": 0,
                        "linkedId": null
                    }
                ],
                "login": {
                    "uris": [
                        {
                            "match": null,
                            "uri": "https://www.asdxc.sad"
                        }
                    ],
                    "username": "[email protected]",
                    "password": "some pass"
                },
                "collectionIds": null
            },
            {
                "id": "318d8e86-c101-4fa4-acde-ad8300f3d306",
                "organizationId": null,
                "folderId": null,
                "type": 2,
                "reprompt": 0,
                "name": "Test Secure note",
                "notes": "Content of secure note",
                "favorite": false,
                "fields": [
                    {
                        "name": "custome field secure note",
                        "value": "3",
                        "type": 0,
                        "linkedId": null
                    }
                ],
                "secureNote": {
                    "type": 0
                },
                "collectionIds": null
            }
        ]
    },
{
        "encrypted": false,
        "folders": [ "top level/folder2" ],
        "items": [
            {
                "organizationId": "poosd",
                "folderId": null,
                "type": 1,
                "reprompt": 0,
                "name": "asdHardware",
                "notes": null,
                "favorite": false,
                "fields": [
                    {
                        "name": "first customer field",
                        "value": "1",
                        "type": 0,
                        "linkedId": null
                    },
                    {
                        "name": "second custom field",
                        "value": "2",
                        "type": 0,
                        "linkedId": null
                    }
                ],
                "login": {
                    "uris": [
                        {
                            "match": null,
                            "uri": "https://www.someurl.co.uk"
                        }
                    ],
                    "username": "[email protected]",
                    "password": "knasdo[nasv"
                },
                "collectionIds": null
            },
            {
                "id": "318d8e86-c101-4fa4-acde-ad8300f3d306",
                "organizationId": null,
                "folderId": null,
                "type": 2,
                "reprompt": 0,
                "name": "Test Secure note",
                "notes": "Content of secure note",
                "favorite": false,
                "fields": [
                    {
                        "name": "custome field secure note",
                        "value": "3",
                        "type": 0,
                        "linkedId": null
                    }
                ],
                "secureNote": {
                    "type": 0
                },
                "collectionIds": null
            }
        ]
    }
}

Hey there, are you working on possible contributions to the Bitwarden codebase in Visual Studio? You can try the gitter channel here to connect with Bitwarden devs bitwarden/Lobby - Gitter

Hi @aasimenator - try removing the outer curly braces.

Hi, if I try removing the outer curly braces. I get a warning/error “only one top-level item is allowed in a JSON document”

Then it sounds like you might have other problems as well.

Have you tried using a JSON validator/linting in VS?

EDIT: Also, have you seen this page? (Note there is a sample JSON file you can download and emulate, if you haven’t seen it yet.)