{"id":22040442,"url":"https://github.com/inventsable/json-in-jsx-example","last_synced_at":"2026-04-09T09:40:24.838Z","repository":{"id":46530467,"uuid":"232681677","full_name":"Inventsable/JSON-in-JSX-example","owner":"Inventsable","description":"By request at the Adobe Illustrator forum","archived":false,"fork":false,"pushed_at":"2021-10-06T09:53:39.000Z","size":2441,"stargazers_count":2,"open_issues_count":17,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T19:25:40.963Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inventsable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-08T23:39:46.000Z","updated_at":"2024-02-16T14:46:17.000Z","dependencies_parsed_at":"2022-08-28T22:12:39.801Z","dependency_job_id":null,"html_url":"https://github.com/Inventsable/JSON-in-JSX-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inventsable%2FJSON-in-JSX-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inventsable%2FJSON-in-JSX-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inventsable%2FJSON-in-JSX-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inventsable%2FJSON-in-JSX-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inventsable","download_url":"https://codeload.github.com/Inventsable/JSON-in-JSX-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245104738,"owners_count":20561424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T11:14:26.012Z","updated_at":"2025-12-30T23:32:13.325Z","avatar_url":"https://github.com/Inventsable.png","language":"JavaScript","readme":"# JSON in JSX\n\n## install (needs NodeJS)\n\n```bash\n# place in /CEP/extensions/\ngit clone https://github.com/Inventsable/JSON-in-JSX-example.git\n\n# Install node dependencies\nnpm install\n\n# Launch developer context for panel\nnpm run serve\n\n# Launch Illustrator and find in Windows \u003e Extensions. Must do above steps before launching Illustrator!\n```\n\n## Using the [same code provided here](https://community.adobe.com/t5/illustrator/parsing-json-in-adobe-illustrator-extended-panel/m-p/10841051)\n\n```js\nclickAndRespond() {\n      const csiRun = new CSInterface();\n      const root = decodeURI(csiRun.getSystemPath(\"extension\")).replace(\n        /file:\\/{1,}/,\n        \"\"\n      );\n      const json2File = `${root}/src/json2.jsx`;\n      const productTemplateSetupFile = `${root}/src/productTemplateSetup.jsx`;\n      csiRun.evalScript(`$.evalFile('${json2File}')`);\n      csiRun.evalScript(`$.evalFile('${productTemplateSetupFile}')`);\n\n      const someData = [\"john\", \"bar\", \"son\", \"datto\"];\n      csiRun.evalScript(\n        `setupPlateTemplate('${JSON.stringify(someData)}')`,\n        val =\u003e {\n          this.response = JSON.parse(val);\n        }\n      );\n    }\n  }\n```\n\n### Important files are:\n\n- ./src/json2.jsx\n- ./src/productTemplateSetup.jsx\n- ./src/App.vue (HTML/JS/CSS logic for the panel itself)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finventsable%2Fjson-in-jsx-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finventsable%2Fjson-in-jsx-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finventsable%2Fjson-in-jsx-example/lists"}