Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Assignment of value vs Destructuring an object with larger object 2
(version: 0)
Comparing performance of:
Assign vs Destructure
Created:
4 years ago
by:
Guest
Jump to the latest result
Tests:
Assign
const obj = { "info": { "_postman_id": "2efbdeb7-28f3-48bf-b077-ca405a93256a", "name": "Balanz - API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "bind", "item": [ { "name": "login", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/login", "host": ["{{url}}"], "path": ["bind", "login"] } }, "response": [] }, { "name": "viewsAvailable", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/viewsAvailable", "host": ["{{url}}"], "path": ["bind", "viewsAvailable"] } }, "response": [] }, { "name": "accounts", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/accounts", "host": ["{{url}}"], "path": ["bind", "accounts"] } }, "response": [] }, { "name": "account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account", "host": ["{{url}}"], "path": ["bind", "account"] } }, "response": [] }, { "name": "account by cbu o cvu", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account-cbu-cvu", "host": ["{{url}}"], "path": ["bind", "account-cbu-cvu"] } }, "response": [] }, { "name": "account by alias", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account-alias", "host": ["{{url}}"], "path": ["bind", "account-alias"] } }, "response": [] }, { "name": "create-cvu", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/create-cvu", "host": ["{{url}}"], "path": ["bind", "create-cvu"] } }, "response": [] } ] }, { "name": "Auth", "item": [ { "name": "login dario@magnetico.dev", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"dariocamarro@gmail.com\",\n \"password\": \"H3l3nCat@\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login", "host": ["{{url}}"], "path": ["auth", "login"] } }, "response": [] }, { "name": "login investorverified", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"mariano.jacobo@gmail.com\",\n \"password\": \"Test1234.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login", "host": ["{{url}}"], "path": ["auth", "login"] } }, "response": [] }, { "name": "backoffice login", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"backofficeToken\", jsonData.token);", "pm.collectionVariables.set(\"backofficeRefreshToken\", jsonData.refreshToken);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"admin@mail.com\",\n \"password\": \"m@gnet1co\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/admin-login", "host": ["{{url}}"], "path": ["auth", "admin-login"] } }, "response": [] }, { "name": "token", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{refreshToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login/refresh-token", "host": ["{{url}}"], "path": ["auth", "login", "refresh-token"] } }, "response": [] }, { "name": "verification", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/verification", "host": ["{{url}}"], "path": ["auth", "verification"] } }, "response": [] }, { "name": "register", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"user\": {\n \"username\": \"sarasa12356@gmail.com\",\n \"password\": \"Sarasa1!234\",\n \"countryId\": 1,\n \"phoneNumber\": \"1235123123123\",\n \"isLegalEntity\": true\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/register", "host": ["{{url}}"], "path": ["auth", "register"] } }, "response": [] }, { "name": "recover-password", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"dariocamarro@gmail.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/recover-password", "host": ["{{url}}"], "path": ["auth", "recover-password"] } }, "response": [] } ] }, { "name": "User", "item": [ { "name": "user / password", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"password\": \"eYVwkk1$\",\n \"newPassword\" : \"eYVwkk1$\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/password", "host": ["{{url}}"], "path": ["users", "{{userId}}", "password"] } }, "response": [] }, { "name": "users / id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/users/{{userId}}", "host": ["{{url}}"], "path": ["users", "{{userId}}"] } }, "response": [] }, { "name": "user / ping", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/is-alive", "host": ["{{url}}"], "path": ["users", "{{userId}}", "is-alive"] } }, "response": [] }, { "name": "exists / mail", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/users/exists/dario@magnetico.dev", "host": ["{{url}}"], "path": ["users", "exists", "dario@magnetico.dev"] } }, "response": [] }, { "name": "user / kyc identityCardFront", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "front", "type": "file", "src": "/Users/dario/Downloads/dni-dario-1.jpeg" } ] }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/identity-card-front", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "identity-card-front"] } }, "response": [] }, { "name": "user / kyc identityCardBack", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "back", "type": "file", "src": "/Users/dario/Downloads/dni-dario-1.jpeg" } ] }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/identity-card-back", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "identity-card-back"] } }, "response": [] }, { "name": "user / kyc form", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"form\": {\n \"occupationId\": 2,\n \"isObligatedPersonUIF\": false,\n \"isExposedPerson\": false,\n \"anualIncomeId\": 7,\n \"fundsOriginsIds\": [1,3],\n \"netWorthId\": 4,\n \"amountToInvestId\": 1\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/form", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "form"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"account\": {\n \"accountCode\": \"3220001823000055910025\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"account\": {\n \"accountCode\": 1,\n \"type\": false\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account/3220001823000055910025", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account", "3220001823000055910025"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account/3220001823000055910025", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account", "3220001823000055910025"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "documentation", "type": "file", "src": "/Users/mariano.jacobo/Downloads/14960721258681WO4U4QFYR1VOXO6796ZCKUFN6CE3ME.pdf" }, { "key": "description", "value": "dni reverso", "type": "text" } ] }, "url": { "raw": "{{url}}/users/15/documentation", "host": ["{{url}}"], "path": ["users", "15", "documentation"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "url": { "raw": "{{url}}/users/15/documentation", "host": ["{{url}}"], "path": ["users", "15", "documentation"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "documentation", "type": "file", "src": "/Users/mariano.jacobo/Downloads/this_is_fine.jpeg" } ] }, "url": { "raw": "{{url}}/users/15/documentation/3", "host": ["{{url}}"], "path": ["users", "15", "documentation", "3"] } }, "response": [] } ] }, { "name": "Watchlist", "item": [ { "name": "Watchlist - All", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/watchlist/", "host": ["{{url}}"], "path": ["watchlist", ""] } }, "response": [] }, { "name": "Watchlist - Remove", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "url": { "raw": "{{url}}/watchlist/1", "host": ["{{url}}"], "path": ["watchlist", "1"] } }, "response": [] }, { "name": "Watchlist - Add", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "url": { "raw": "{{url}}/watchlist/BTC", "host": ["{{url}}"], "path": ["watchlist", "BTC"] } }, "response": [] } ] }, { "name": "wallet", "item": [ { "name": "cashIn", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"cashIn\": {\n \"amount\": 5000,\n \"currencyId\": 1,\n \"accountCodeDebit\": \"3220001823000055910025\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/cash-in", "host": ["{{url}}"], "path": ["wallet", "cash-in"] } }, "response": [] }, { "name": "balance", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/balance", "host": ["{{url}}"], "path": ["wallet", "balance"] } }, "response": [] }, { "name": "cash-out", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"cashOut\": {\n \"amount\": 2000,\n \"currencyId\": 1,\n \"accountCodeId\": 3\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/cash-out", "host": ["{{url}}"], "path": ["wallet", "cash-out"] } }, "response": [] }, { "name": "sell", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"sell\": {\n \"amount\": 0.1,\n \"currencyId\": 1,\n \"cryptoId\": 4,\n \"pin\": \"1234\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/sell", "host": ["{{url}}"], "path": ["wallet", "sell"] } }, "response": [] } ] }, { "name": "Backoffice", "item": [ { "name": "wallets", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/wallets?page=1&take=50", "host": ["{{url}}"], "path": ["backoffice", "wallets"], "query": [ { "key": "page", "value": "1" }, { "key": "take", "value": "50" } ] } }, "response": [] }, { "name": "wallets / id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/wallets/12", "host": ["{{url}}"], "path": ["backoffice", "wallets", "12"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"documentation\": {\n \"description\": \"documentación intermediaria\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users/1/documentation", "host": ["{{url}}"], "path": ["backoffice", "users", "1", "documentation"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"documentation\": {\n \"status\": \"ACCEPTED\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users/15/documentation/5", "host": ["{{url}}"], "path": ["backoffice", "users", "15", "documentation", "5"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/users/15/documentation", "host": ["{{url}}"], "path": ["backoffice", "users", "15", "documentation"] } }, "response": [] }, { "name": "backoffice user / profile picture", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "type": "text", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "picture", "type": "file", "src": "/Users/mariano.jacobo/Downloads/this_is_fine.jpeg" } ] }, "url": { "raw": "{{url}}/backoffice/backoffice-users/1/profile-picture", "host": ["{{url}}"], "path": ["backoffice", "backoffice-users", "1", "profile-picture"] } }, "response": [] }, { "name": "users", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"user\": {\n \"names\": \"Grisel\",\n \"surname\": \"Sanchez\",\n \"identityCard\": \"32423\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-04-18 14:55:14\",\n \"username\": \"griselalmasanchez@gmail.com\",\n \"notificationEmail\": \"griselalmasanchez@gmail.com\",\n \"realAddress\": \"3443\",\n \"cuit\": \"27422249511\",\n \"phoneNumber\": \"01165820111\",\n \"referralEmail\": \"griselalmasanchez@gmail.com\",\n \"status\": \"ASSESSMENT\",\n \"isLegalEntity\": false,\n \"isObligatedPersonUIF\": false,\n \"isExposedPerson\": true,\n \"countryOfResidenceId\": 5,\n \"taxCountry\": 5,\n \"occupationId\": 2,\n \"anualIncomeId\": 2,\n \"fundsOriginsIds\": [\n 1\n ],\n \"netWorthId\": 3,\n \"amountToInvestId\": 1\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users", "host": ["{{url}}"], "path": ["backoffice", "users"] } }, "response": [] }, { "name": "kyc-form-enabled-largest", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/kyc-form-enabled-largest?type=NET_WORTH&countryCode=AR", "host": ["{{url}}"], "path": ["backoffice", "kyc-form-enabled-largest"], "query": [ { "key": "type", "value": "NET_WORTH" }, { "key": "countryCode", "value": "AR" } ] } }, "response": [] } ] }, { "name": "ping", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "{\n \"userName\": \"dario@mag.com\",\n \"password\": \"eYVwaubg!Bp5YdN\",\n \"expiresIn\": 12312312313123\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/ping", "host": ["{{url}}"], "path": ["ping"] } }, "response": [] }, { "name": "countries", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "countries", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "information", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "renaper", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/renaper", "host": ["{{url}}"], "path": ["renaper"] } }, "response": [] }, { "name": "occupations", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "\n\n" }, "url": { "raw": "{{url}}/occupations", "host": ["{{url}}"], "path": ["occupations"] } }, "response": [] }, { "name": "kyc-form-enabled-values", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiQXV0aGVudGljYXRpb24iLCJpYXQiOjE2NTA5MTM1NzIsImV4cCI6MTY1MDkxMzYzMn0.51TFBuawJKoOaaMQgUxjsmuxPGUV5B8aY0NO_JPjaJY", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/kyc-form-enabled-values?type=NET_WORTH", "host": ["{{url}}"], "path": ["kyc-form-enabled-values"], "query": [ { "key": "type", "value": "NET_WORTH" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [""] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [""] } } ], "variable": [ { "key": "token", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiQXV0aGVudGljYXRpb24iLCJpYXQiOjE2NTA5MTM1NzIsImV4cCI6MTY1MDkxMzYzMn0.51TFBuawJKoOaaMQgUxjsmuxPGUV5B8aY0NO_JPjaJY" }, { "key": "refreshToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiUmVmcmVzaCIsImlhdCI6MTY1MDkxMzU3MiwiZXhwIjoxNjUwOTQxOTk5fQ.kRtfWcnCPTVA_9JOD1WdgrdMbGGK77nVaAJO2Rrn_Qk" }, { "key": "userId", "value": 29 }, { "key": "backofficeToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbkBtYWlsLmNvbSIsImp3dFR5cGUiOiJCYWNrb2ZmaWNlIiwiaWF0IjoxNjUwOTc4NzAyLCJleHAiOjE2NTA5Nzg3NjJ9.6X1mu339RPhbqK3oco6GDImgh50Kyc1KPeuRiJLKUeg" }, { "key": "backofficeRefreshToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbkBtYWlsLmNvbSIsImp3dFR5cGUiOiJCYWNrb2ZmaWNlUmVmcmVzaCIsImlhdCI6MTY1MDk3ODcwMiwiZXhwIjoxNjUxMDI4Mzk5fQ.k6J4OfTogr0OJDx2-63cnstEEkhBpuXIU7anrhkP2dc" } ] }; const name = obj.info.name; console.log(name);
Destructure
const obj = { "info": { "_postman_id": "2efbdeb7-28f3-48bf-b077-ca405a93256a", "name": "Balanz - API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "bind", "item": [ { "name": "login", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/login", "host": ["{{url}}"], "path": ["bind", "login"] } }, "response": [] }, { "name": "viewsAvailable", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/viewsAvailable", "host": ["{{url}}"], "path": ["bind", "viewsAvailable"] } }, "response": [] }, { "name": "accounts", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/accounts", "host": ["{{url}}"], "path": ["bind", "accounts"] } }, "response": [] }, { "name": "account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account", "host": ["{{url}}"], "path": ["bind", "account"] } }, "response": [] }, { "name": "account by cbu o cvu", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account-cbu-cvu", "host": ["{{url}}"], "path": ["bind", "account-cbu-cvu"] } }, "response": [] }, { "name": "account by alias", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/account-alias", "host": ["{{url}}"], "path": ["bind", "account-alias"] } }, "response": [] }, { "name": "create-cvu", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/bind/create-cvu", "host": ["{{url}}"], "path": ["bind", "create-cvu"] } }, "response": [] } ] }, { "name": "Auth", "item": [ { "name": "login dario@magnetico.dev", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"dariocamarro@gmail.com\",\n \"password\": \"H3l3nCat@\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login", "host": ["{{url}}"], "path": ["auth", "login"] } }, "response": [] }, { "name": "login investorverified", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"mariano.jacobo@gmail.com\",\n \"password\": \"Test1234.\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login", "host": ["{{url}}"], "path": ["auth", "login"] } }, "response": [] }, { "name": "backoffice login", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"backofficeToken\", jsonData.token);", "pm.collectionVariables.set(\"backofficeRefreshToken\", jsonData.refreshToken);" ], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"admin@mail.com\",\n \"password\": \"m@gnet1co\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/admin-login", "host": ["{{url}}"], "path": ["auth", "admin-login"] } }, "response": [] }, { "name": "token", "event": [ { "listen": "test", "script": { "exec": [ "var jsonData = JSON.parse(responseBody);", "pm.collectionVariables.set(\"token\", jsonData.token);", "pm.collectionVariables.set(\"refreshToken\", jsonData.refreshToken);", "pm.collectionVariables.set(\"userId\", jsonData.user.id);" ], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{refreshToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/login/refresh-token", "host": ["{{url}}"], "path": ["auth", "login", "refresh-token"] } }, "response": [] }, { "name": "verification", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "request": { "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text" } ], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/verification", "host": ["{{url}}"], "path": ["auth", "verification"] } }, "response": [] }, { "name": "register", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"user\": {\n \"username\": \"sarasa12356@gmail.com\",\n \"password\": \"Sarasa1!234\",\n \"countryId\": 1,\n \"phoneNumber\": \"1235123123123\",\n \"isLegalEntity\": true\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/register", "host": ["{{url}}"], "path": ["auth", "register"] } }, "response": [] }, { "name": "recover-password", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"username\": \"dariocamarro@gmail.com\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/auth/recover-password", "host": ["{{url}}"], "path": ["auth", "recover-password"] } }, "response": [] } ] }, { "name": "User", "item": [ { "name": "user / password", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "raw", "raw": "{\n \"password\": \"eYVwkk1$\",\n \"newPassword\" : \"eYVwkk1$\" \n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/password", "host": ["{{url}}"], "path": ["users", "{{userId}}", "password"] } }, "response": [] }, { "name": "users / id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/users/{{userId}}", "host": ["{{url}}"], "path": ["users", "{{userId}}"] } }, "response": [] }, { "name": "user / ping", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/is-alive", "host": ["{{url}}"], "path": ["users", "{{userId}}", "is-alive"] } }, "response": [] }, { "name": "exists / mail", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/users/exists/dario@magnetico.dev", "host": ["{{url}}"], "path": ["users", "exists", "dario@magnetico.dev"] } }, "response": [] }, { "name": "user / kyc identityCardFront", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "front", "type": "file", "src": "/Users/dario/Downloads/dni-dario-1.jpeg" } ] }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/identity-card-front", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "identity-card-front"] } }, "response": [] }, { "name": "user / kyc identityCardBack", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "back", "type": "file", "src": "/Users/dario/Downloads/dni-dario-1.jpeg" } ] }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/identity-card-back", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "identity-card-back"] } }, "response": [] }, { "name": "user / kyc form", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"form\": {\n \"occupationId\": 2,\n \"isObligatedPersonUIF\": false,\n \"isExposedPerson\": false,\n \"anualIncomeId\": 7,\n \"fundsOriginsIds\": [1,3],\n \"netWorthId\": 4,\n \"amountToInvestId\": 1\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/kyc/form", "host": ["{{url}}"], "path": ["users", "{{userId}}", "kyc", "form"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"account\": {\n \"accountCode\": \"3220001823000055910025\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "body": { "mode": "raw", "raw": "{\n \"account\": {\n \"accountCode\": 1,\n \"type\": false\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account/3220001823000055910025", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account", "3220001823000055910025"] } }, "response": [] }, { "name": "user / profile / account", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/users/{{userId}}/profile/account/3220001823000055910025", "host": ["{{url}}"], "path": ["users", "{{userId}}", "profile", "account", "3220001823000055910025"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "documentation", "type": "file", "src": "/Users/mariano.jacobo/Downloads/14960721258681WO4U4QFYR1VOXO6796ZCKUFN6CE3ME.pdf" }, { "key": "description", "value": "dni reverso", "type": "text" } ] }, "url": { "raw": "{{url}}/users/15/documentation", "host": ["{{url}}"], "path": ["users", "15", "documentation"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "url": { "raw": "{{url}}/users/15/documentation", "host": ["{{url}}"], "path": ["users", "15", "documentation"] } }, "response": [] }, { "name": "user / documentation", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "type": "text", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "documentation", "type": "file", "src": "/Users/mariano.jacobo/Downloads/this_is_fine.jpeg" } ] }, "url": { "raw": "{{url}}/users/15/documentation/3", "host": ["{{url}}"], "path": ["users", "15", "documentation", "3"] } }, "response": [] } ] }, { "name": "Watchlist", "item": [ { "name": "Watchlist - All", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/watchlist/", "host": ["{{url}}"], "path": ["watchlist", ""] } }, "response": [] }, { "name": "Watchlist - Remove", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "DELETE", "header": [], "url": { "raw": "{{url}}/watchlist/1", "host": ["{{url}}"], "path": ["watchlist", "1"] } }, "response": [] }, { "name": "Watchlist - Add", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "url": { "raw": "{{url}}/watchlist/BTC", "host": ["{{url}}"], "path": ["watchlist", "BTC"] } }, "response": [] } ] }, { "name": "wallet", "item": [ { "name": "cashIn", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"cashIn\": {\n \"amount\": 5000,\n \"currencyId\": 1,\n \"accountCodeDebit\": \"3220001823000055910025\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/cash-in", "host": ["{{url}}"], "path": ["wallet", "cash-in"] } }, "response": [] }, { "name": "balance", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/balance", "host": ["{{url}}"], "path": ["wallet", "balance"] } }, "response": [] }, { "name": "cash-out", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"cashOut\": {\n \"amount\": 2000,\n \"currencyId\": 1,\n \"accountCodeId\": 3\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/cash-out", "host": ["{{url}}"], "path": ["wallet", "cash-out"] } }, "response": [] }, { "name": "sell", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{token}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"sell\": {\n \"amount\": 0.1,\n \"currencyId\": 1,\n \"cryptoId\": 4,\n \"pin\": \"1234\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/wallet/sell", "host": ["{{url}}"], "path": ["wallet", "sell"] } }, "response": [] } ] }, { "name": "Backoffice", "item": [ { "name": "wallets", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/wallets?page=1&take=50", "host": ["{{url}}"], "path": ["backoffice", "wallets"], "query": [ { "key": "page", "value": "1" }, { "key": "take", "value": "50" } ] } }, "response": [] }, { "name": "wallets / id", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/wallets/12", "host": ["{{url}}"], "path": ["backoffice", "wallets", "12"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"documentation\": {\n \"description\": \"documentación intermediaria\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users/1/documentation", "host": ["{{url}}"], "path": ["backoffice", "users", "1", "documentation"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"documentation\": {\n \"status\": \"ACCEPTED\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users/15/documentation/5", "host": ["{{url}}"], "path": ["backoffice", "users", "15", "documentation", "5"] } }, "response": [] }, { "name": "users / id / documentation", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/users/15/documentation", "host": ["{{url}}"], "path": ["backoffice", "users", "15", "documentation"] } }, "response": [] }, { "name": "backoffice user / profile picture", "event": [ { "listen": "test", "script": { "exec": [""], "type": "text/javascript" } } ], "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "PUT", "header": [ { "key": "Authorization", "type": "text", "value": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTEsInVzZXJuYW1lIjoiZGFyaW9AbWFnbmV0aWNvLmRldiIsImlzVmVyaWZpZWQiOmZhbHNlLCJqd3RUeXBlIjoiVmVyaWZpY2F0aW9uIiwiZXhwIjoxNjM3MDczMzYwODk0LCJpYXQiOjE2MzcwNzI0NjB9.vf6cSqi0oVi_KydtZu7yro_FvUnWP1gmhyEeYz1nDvg", "disabled": true } ], "body": { "mode": "formdata", "formdata": [ { "key": "picture", "type": "file", "src": "/Users/mariano.jacobo/Downloads/this_is_fine.jpeg" } ] }, "url": { "raw": "{{url}}/backoffice/backoffice-users/1/profile-picture", "host": ["{{url}}"], "path": ["backoffice", "backoffice-users", "1", "profile-picture"] } }, "response": [] }, { "name": "users", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"user\": {\n \"names\": \"Grisel\",\n \"surname\": \"Sanchez\",\n \"identityCard\": \"32423\",\n \"gender\": \"M\",\n \"dateOfBirth\": \"1990-04-18 14:55:14\",\n \"username\": \"griselalmasanchez@gmail.com\",\n \"notificationEmail\": \"griselalmasanchez@gmail.com\",\n \"realAddress\": \"3443\",\n \"cuit\": \"27422249511\",\n \"phoneNumber\": \"01165820111\",\n \"referralEmail\": \"griselalmasanchez@gmail.com\",\n \"status\": \"ASSESSMENT\",\n \"isLegalEntity\": false,\n \"isObligatedPersonUIF\": false,\n \"isExposedPerson\": true,\n \"countryOfResidenceId\": 5,\n \"taxCountry\": 5,\n \"occupationId\": 2,\n \"anualIncomeId\": 2,\n \"fundsOriginsIds\": [\n 1\n ],\n \"netWorthId\": 3,\n \"amountToInvestId\": 1\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/backoffice/users", "host": ["{{url}}"], "path": ["backoffice", "users"] } }, "response": [] }, { "name": "kyc-form-enabled-largest", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "{{backofficeToken}}", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/backoffice/kyc-form-enabled-largest?type=NET_WORTH&countryCode=AR", "host": ["{{url}}"], "path": ["backoffice", "kyc-form-enabled-largest"], "query": [ { "key": "type", "value": "NET_WORTH" }, { "key": "countryCode", "value": "AR" } ] } }, "response": [] } ] }, { "name": "ping", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "{\n \"userName\": \"dario@mag.com\",\n \"password\": \"eYVwaubg!Bp5YdN\",\n \"expiresIn\": 12312312313123\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/ping", "host": ["{{url}}"], "path": ["ping"] } }, "response": [] }, { "name": "countries", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "countries", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "information", "request": { "method": "GET", "header": [], "url": { "raw": "{{url}}/countries", "host": ["{{url}}"], "path": ["countries"] } }, "response": [] }, { "name": "renaper", "event": [ { "listen": "test", "script": { "exec": ["var jsonData = JSON.parse(responseBody);", "pm.environment.set(\"token\", jsonData.token);"], "type": "text/javascript" } } ], "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{url}}/renaper", "host": ["{{url}}"], "path": ["renaper"] } }, "response": [] }, { "name": "occupations", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "raw", "raw": "\n\n" }, "url": { "raw": "{{url}}/occupations", "host": ["{{url}}"], "path": ["occupations"] } }, "response": [] }, { "name": "kyc-form-enabled-values", "request": { "auth": { "type": "bearer", "bearer": [ { "key": "token", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiQXV0aGVudGljYXRpb24iLCJpYXQiOjE2NTA5MTM1NzIsImV4cCI6MTY1MDkxMzYzMn0.51TFBuawJKoOaaMQgUxjsmuxPGUV5B8aY0NO_JPjaJY", "type": "string" } ] }, "method": "GET", "header": [], "url": { "raw": "{{url}}/kyc-form-enabled-values?type=NET_WORTH", "host": ["{{url}}"], "path": ["kyc-form-enabled-values"], "query": [ { "key": "type", "value": "NET_WORTH" } ] } }, "response": [] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [""] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [""] } } ], "variable": [ { "key": "token", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiQXV0aGVudGljYXRpb24iLCJpYXQiOjE2NTA5MTM1NzIsImV4cCI6MTY1MDkxMzYzMn0.51TFBuawJKoOaaMQgUxjsmuxPGUV5B8aY0NO_JPjaJY" }, { "key": "refreshToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MjksInVzZXJuYW1lIjoibWFyaWFuby5qYWNvYm9AZ21haWwuY29tIiwiaXNFbWFpbFZlcmlmaWVkIjp0cnVlLCJqd3RUeXBlIjoiUmVmcmVzaCIsImlhdCI6MTY1MDkxMzU3MiwiZXhwIjoxNjUwOTQxOTk5fQ.kRtfWcnCPTVA_9JOD1WdgrdMbGGK77nVaAJO2Rrn_Qk" }, { "key": "userId", "value": 29 }, { "key": "backofficeToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbkBtYWlsLmNvbSIsImp3dFR5cGUiOiJCYWNrb2ZmaWNlIiwiaWF0IjoxNjUwOTc4NzAyLCJleHAiOjE2NTA5Nzg3NjJ9.6X1mu339RPhbqK3oco6GDImgh50Kyc1KPeuRiJLKUeg" }, { "key": "backofficeRefreshToken", "value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwidXNlcm5hbWUiOiJhZG1pbkBtYWlsLmNvbSIsImp3dFR5cGUiOiJCYWNrb2ZmaWNlUmVmcmVzaCIsImlhdCI6MTY1MDk3ODcwMiwiZXhwIjoxNjUxMDI4Mzk5fQ.k6J4OfTogr0OJDx2-63cnstEEkhBpuXIU7anrhkP2dc" } ] }; const { name } = obj.info; console.log(name);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Assign
Destructure
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Autogenerated LLM Summary
(model
llama3.2:3b
, generated one year ago):
Based on the provided input, I will attempt to answer. The input appears to be a JSON object with an array of objects as its value. Each inner object has a `key` and a `value`. The task is not explicitly stated, but based on the context, it seems like we need to extract values from these inner objects. However, without more information about what exactly needs to be extracted or how the values should be used, it's challenging to provide a definitive answer. Nevertheless, I can attempt to provide some insights. From the provided code snippet: ```javascript const obj = { "info": { "name": "John Doe", "version": "1.0.0" }, "data": [ { "key": "refreshToken", "value": "...", "otherKey": "someValue" }, { "key": "userId", "value": 29 } ] }; const { name } = obj.info; console.log(name); // Output: John Doe ``` We can extract the `name` value from the `info` object using destructuring. If you'd like to provide more context or clarify what specific values should be extracted, I'll do my best to assist.
Related benchmarks:
Variable assignment from object | traditional vs destructuring
Assignment of value vs Destructuring an object
Find deep with Assignment of value vs Destructuring an object
Assignment of value vs Destructuring an object 2
Assignment of value vs Destructuring an object (direct assign insted of variable )
Comments
Confirm delete:
Do you really want to delete benchmark?