[{"data":1,"prerenderedAt":1263},["ShallowReactive",2],{"parentPage":3,"subPages":462,"useCases":463,"content-query-US9eOyOn0y":464},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"slug":10,"weight":11,"body":12,"_type":456,"_id":457,"_source":458,"_file":459,"_stem":460,"_extension":461},"/integration/n8n","integration",false,"","n8n - Work With PDF Toolkit Community Node","Learn how you can use CustomJS Official PDF toolkit node on n8n","n8n",0,{"type":13,"children":14,"toc":449},"root",[15],{"type":16,"tag":17,"props":18,"children":24},"element","div",{"className":19},[20,21,22,23],"grid","md:grid-cols-3","grid-cols-1","gap-4",[25,28,101,113,407,414,434],{"type":26,"value":27},"text","\n    ",{"type":16,"tag":17,"props":29,"children":33},{"className":30},[31,32],"md:col-span-2","col-span-1",[34,36,74,91],{"type":26,"value":35},"\n        ",{"type":16,"tag":17,"props":37,"children":41},{"className":38},[39,40],"pe-12","pt-3",[42,44,51,53,57,60,62,65,73],{"type":26,"value":43},"\n          ",{"type":16,"tag":45,"props":46,"children":48},"h1",{"id":47},"automate-pdf-workflows-in-n8n",[49],{"type":26,"value":50},"Automate PDF workflows in n8n",{"type":26,"value":52},"\n          Design flexible, robust workflow with creating PDF files from HTML, merging multiple PDF files, and taking screenshots of websites.\n          ",{"type":16,"tag":54,"props":55,"children":56},"br",{},[],{"type":16,"tag":54,"props":58,"children":59},{},[],{"type":26,"value":61},"\n          You must first install our community node:",{"type":16,"tag":54,"props":63,"children":64},{},[],{"type":16,"tag":66,"props":67,"children":70},"a",{"href":68,"target":69},"https://www.npmjs.com/package/@custom-js/n8n-nodes-pdf-toolkit","_blank",[71],{"type":26,"value":72},"@custom-js/n8n-nodes-pdf-toolkit",{"type":26,"value":35},{"type":16,"tag":75,"props":76,"children":78},"callout",{"type":77},"warning",[79],{"type":16,"tag":80,"props":81,"children":82},"p",{},[83,89],{"type":16,"tag":84,"props":85,"children":86},"strong",{},[87],{"type":26,"value":88},"Important:",{"type":26,"value":90}," CustomJS community nodes are available on both n8n Cloud and self-hosted n8n instances. You can choose whichever setup fits your workflow best.",{"type":16,"tag":92,"props":93,"children":95},"pre",{"code":94},"\u003C/div>\n\u003Cdiv class=\"col-span-1\">\n    \u003Cimg src=\"/images/integration/n8n/workflow2.png\" alt=\"n8n Connectd App\" />\n\u003C/div>\n",[96],{"type":16,"tag":97,"props":98,"children":99},"code",{"__ignoreMap":7},[100],{"type":26,"value":94},{"type":16,"tag":102,"props":103,"children":110},"h2",{"className":104,"id":109},[105,106,107,108],"text-2xl","font-bold","mt-12","mb-6","our-community-node-provides",[111],{"type":26,"value":112},"Our community node provides:",{"type":16,"tag":17,"props":114,"children":119},{"className":115},[20,116,117,118],"md:grid-cols-2","lg:grid-cols-3","gap-6",[120,122,164,165,191,192,218,219,245,246,272,273,299,300,326,327,353,354,380,381],{"type":26,"value":121},"\n  ",{"type":16,"tag":66,"props":123,"children":136},{"href":124,"className":125},"/integration/n8n/html-to-pdf",[126,127,128,129,130,131,132,133,134,135],"border","rounded-lg","p-4","shadow-sm","flex","flex-col","justify-between","no-underline","hover:shadow-md","transition-shadow",[137,138,163],{"type":26,"value":27},{"type":16,"tag":17,"props":139,"children":140},{},[141,143,152,153,162],{"type":26,"value":142},"\n      ",{"type":16,"tag":144,"props":145,"children":149},"h4",{"className":146,"id":148},[106,147],"text-gray-900","html-to-pdf",[150],{"type":26,"value":151},"HTML to PDF",{"type":26,"value":142},{"type":16,"tag":80,"props":154,"children":159},{"className":155},[156,157,158],"text-gray-600","mt-2","text-sm",[160],{"type":26,"value":161},"Convert HTML content into high-quality PDF documents with ease, enabling automated report generation and document processing workflows.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":166,"children":169},{"href":167,"className":168},"/integration/n8n/merge-pdfs",[126,127,128,129,130,131,132,133,134,135],[170,171,190],{"type":26,"value":27},{"type":16,"tag":17,"props":172,"children":173},{},[174,175,182,183,189],{"type":26,"value":142},{"type":16,"tag":144,"props":176,"children":179},{"className":177,"id":178},[106,147],"merge-pdfs",[180],{"type":26,"value":181},"Merge PDFs",{"type":26,"value":142},{"type":16,"tag":80,"props":184,"children":186},{"className":185},[156,157,158],[187],{"type":26,"value":188},"Combine multiple PDF files into a single document seamlessly, making it ideal for document compilation and organization tasks.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":193,"children":196},{"href":194,"className":195},"/integration/n8n/website-screenshot",[126,127,128,129,130,131,132,133,134,135],[197,198,217],{"type":26,"value":27},{"type":16,"tag":17,"props":199,"children":200},{},[201,202,209,210,216],{"type":26,"value":142},{"type":16,"tag":144,"props":203,"children":206},{"className":204,"id":205},[106,147],"website-screenshot",[207],{"type":26,"value":208},"Website Screenshot",{"type":26,"value":142},{"type":16,"tag":80,"props":211,"children":213},{"className":212},[156,157,158],[214],{"type":26,"value":215},"Capture full-page screenshots of websites and save them as PDF files, useful for archiving web content or generating visual reports.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":220,"children":223},{"href":221,"className":222},"/integration/n8n/compress-pdfs",[126,127,128,129,130,131,132,133,134,135],[224,225,244],{"type":26,"value":27},{"type":16,"tag":17,"props":226,"children":227},{},[228,229,236,237,243],{"type":26,"value":142},{"type":16,"tag":144,"props":230,"children":233},{"className":231,"id":232},[106,147],"compress-pages-from-pdf",[234],{"type":26,"value":235},"Compress Pages from PDF",{"type":26,"value":142},{"type":16,"tag":80,"props":238,"children":240},{"className":239},[156,157,158],[241],{"type":26,"value":242},"Convert HTML or code into a PDF, compress the generated PDF, and return it as a binary response using the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":247,"children":250},{"href":248,"className":249},"/integration/n8n/extract-pdf",[126,127,128,129,130,131,132,133,134,135],[251,252,271],{"type":26,"value":27},{"type":16,"tag":17,"props":253,"children":254},{},[255,256,263,264,270],{"type":26,"value":142},{"type":16,"tag":144,"props":257,"children":260},{"className":258,"id":259},[106,147],"extract-pdf-files",[261],{"type":26,"value":262},"Extract PDF files",{"type":26,"value":142},{"type":16,"tag":80,"props":265,"children":267},{"className":266},[156,157,158],[268],{"type":26,"value":269},"Extract selected pages from a generated PDF with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":274,"children":277},{"href":275,"className":276},"/integration/n8n/pdf-to-png",[126,127,128,129,130,131,132,133,134,135],[278,279,298],{"type":26,"value":27},{"type":16,"tag":17,"props":280,"children":281},{},[282,283,290,291,297],{"type":26,"value":142},{"type":16,"tag":144,"props":284,"children":287},{"className":285,"id":286},[106,147],"convert-pdf-to-png",[288],{"type":26,"value":289},"Convert PDF to PNG",{"type":26,"value":142},{"type":16,"tag":80,"props":292,"children":294},{"className":293},[156,157,158],[295],{"type":26,"value":296},"Convert PDF files into png with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":301,"children":304},{"href":302,"className":303},"/integration/n8n/pdf-to-text",[126,127,128,129,130,131,132,133,134,135],[305,306,325],{"type":26,"value":27},{"type":16,"tag":17,"props":307,"children":308},{},[309,310,317,318,324],{"type":26,"value":142},{"type":16,"tag":144,"props":311,"children":314},{"className":312,"id":313},[106,147],"convert-pdf-to-text",[315],{"type":26,"value":316},"Convert PDF to Text",{"type":26,"value":142},{"type":16,"tag":80,"props":319,"children":321},{"className":320},[156,157,158],[322],{"type":26,"value":323},"Convert PDF files into text with the PDF Toolkit.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":328,"children":331},{"href":329,"className":330},"/integration/n8n/scraper",[126,127,128,129,130,131,132,133,134,135],[332,333,352],{"type":26,"value":27},{"type":16,"tag":17,"props":334,"children":335},{},[336,337,344,345,351],{"type":26,"value":142},{"type":16,"tag":144,"props":338,"children":341},{"className":339,"id":340},[106,147],"web-scraping",[342],{"type":26,"value":343},"Web Scraping",{"type":26,"value":142},{"type":16,"tag":80,"props":346,"children":348},{"className":347},[156,157,158],[349],{"type":26,"value":350},"The Scraper node can simulate clicks, typing, and waits, making it ideal for scraping dynamic or protected content. Extract HTML or screenshots for monitoring, research, or integration.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":355,"children":358},{"href":356,"className":357},"/integration/n8n/ssl-checker",[126,127,128,129,130,131,132,133,134,135],[359,360,379],{"type":26,"value":27},{"type":16,"tag":17,"props":361,"children":362},{},[363,364,371,372,378],{"type":26,"value":142},{"type":16,"tag":144,"props":365,"children":368},{"className":366,"id":367},[106,147],"ssl-checker-ssl-certificate",[369],{"type":26,"value":370},"SSL Checker (SSL Certificate)",{"type":26,"value":142},{"type":16,"tag":80,"props":373,"children":375},{"className":374},[156,157,158],[376],{"type":26,"value":377},"The SSL Checker node checks certificate validity, expiration dates, and configuration, helping you prevent downtime and maintain security compliance with automated alerts and reporting.",{"type":26,"value":27},{"type":26,"value":121},{"type":26,"value":121},{"type":16,"tag":66,"props":382,"children":385},{"href":383,"className":384},"/integration/n8n/split-pdf",[126,127,128,129,130,131,132,133,134,135],[386,387,406],{"type":26,"value":27},{"type":16,"tag":17,"props":388,"children":389},{},[390,391,398,399,405],{"type":26,"value":142},{"type":16,"tag":144,"props":392,"children":395},{"className":393,"id":394},[106,147],"split-pdf-into-pages",[396],{"type":26,"value":397},"Split PDF into Pages",{"type":26,"value":142},{"type":16,"tag":80,"props":400,"children":402},{"className":401},[156,157,158],[403],{"type":26,"value":404},"Split a PDF into individual single-page PDFs and get one n8n item per page — perfect for processing, OCR, or storing each page separately.",{"type":26,"value":27},{"type":26,"value":121},{"type":16,"tag":408,"props":409,"children":411},"h3",{"id":410},"getting-started",[412],{"type":26,"value":413},"Getting Started",{"type":16,"tag":415,"props":416,"children":417},"ol",{},[418,424,429],{"type":16,"tag":419,"props":420,"children":421},"li",{},[422],{"type":26,"value":423},"Install the CustomJS PDF Toolkit node from the n8n community nodes.",{"type":16,"tag":419,"props":425,"children":426},{},[427],{"type":26,"value":428},"Add the node to your workflow and configure the desired action.",{"type":16,"tag":419,"props":430,"children":431},{},[432],{"type":26,"value":433},"Integrate it with other n8n nodes to automate your PDF processing tasks.",{"type":16,"tag":80,"props":435,"children":436},{},[437,439,447],{"type":26,"value":438},"For detailed documentation and examples, visit n8n's ",{"type":16,"tag":66,"props":440,"children":444},{"href":441,"rel":442},"https://n8n.io/workflows/?q=customjs",[443],"nofollow",[445],{"type":26,"value":446},"workflow templates list",{"type":26,"value":448},".",{"title":7,"searchDepth":450,"depth":450,"links":451},2,[452],{"id":109,"depth":450,"text":112,"children":453},[454],{"id":410,"depth":455,"text":413},3,"markdown","content:integration:n8n:index.md","content","integration/n8n/index.md","integration/n8n/index","md",[],[],{"_path":465,"_dir":10,"_draft":6,"_partial":6,"_locale":7,"title":466,"description":467,"slug":468,"body":469,"_type":456,"_id":1260,"_source":458,"_file":1261,"_stem":1262,"_extension":461},"/integration/n8n/ai-json-parser","AI JSON Parser (Clean & Repair)","Parse messy JSON from AI model responses in n8n, remove markdown fences, extract JSON from prose, and repair common issues","ai-json-parser",{"type":13,"children":470,"toc":1251},[471,476,519,531,635,647,653,665,713,719,725,800,806,814,921,929,1111,1117,1198,1203,1209,1245],{"type":16,"tag":45,"props":472,"children":474},{"id":473},"ai-json-parser-clean-repair",[475],{"type":26,"value":466},{"type":16,"tag":75,"props":477,"children":479},{"type":478},"note",[480],{"type":16,"tag":80,"props":481,"children":482},{},[483,485,490,492,497,499,505,507,518],{"type":26,"value":484},"This operation is available on both ",{"type":16,"tag":84,"props":486,"children":487},{},[488],{"type":26,"value":489},"n8n Cloud and self-hosted n8n",{"type":26,"value":491}," and requires the ",{"type":16,"tag":84,"props":493,"children":494},{},[495],{"type":26,"value":496},"CustomJS community package",{"type":26,"value":498},". It ships with the next release of the ",{"type":16,"tag":97,"props":500,"children":502},{"className":501},[],[503],{"type":26,"value":504},"@custom-js/n8n-nodes-pdf-toolkit-v2",{"type":26,"value":506}," package, available from version 0.12.0. ",{"type":16,"tag":66,"props":508,"children":510},{"href":509},"/integration/n8n/installation",[511,513],{"type":26,"value":512},"See ",{"type":16,"tag":84,"props":514,"children":515},{},[516],{"type":26,"value":517},"Installation",{"type":26,"value":448},{"type":16,"tag":80,"props":520,"children":521},{},[522,524,529],{"type":26,"value":523},"The ",{"type":16,"tag":84,"props":525,"children":526},{},[527],{"type":26,"value":528},"AI JSON Parser",{"type":26,"value":530}," operation turns messy AI model output into clean, structured JSON. It fixes exactly the cases where n8n's built-in JSON parsing throws an error:",{"type":16,"tag":532,"props":533,"children":534},"ul",{},[535,545,555,609,619],{"type":16,"tag":419,"props":536,"children":537},{},[538,543],{"type":16,"tag":84,"props":539,"children":540},{},[541],{"type":26,"value":542},"Markdown code fences",{"type":26,"value":544}," around the JSON, as produced by the AI Agent, OpenAI, and Anthropic nodes",{"type":16,"tag":419,"props":546,"children":547},{},[548,553],{"type":16,"tag":84,"props":549,"children":550},{},[551],{"type":26,"value":552},"Prose around the JSON",{"type":26,"value":554},", e.g. \"Here is the result you asked for: { ... } Let me know if you need anything else.\"",{"type":16,"tag":419,"props":556,"children":557},{},[558,563,565,571,573,579,581,587,589,595,596,602,603],{"type":16,"tag":84,"props":559,"children":560},{},[561],{"type":26,"value":562},"Python literals",{"type":26,"value":564}," like ",{"type":16,"tag":97,"props":566,"children":568},{"className":567},[],[569],{"type":26,"value":570},"True",{"type":26,"value":572},", ",{"type":16,"tag":97,"props":574,"children":576},{"className":575},[],[577],{"type":26,"value":578},"False",{"type":26,"value":580},", and ",{"type":16,"tag":97,"props":582,"children":584},{"className":583},[],[585],{"type":26,"value":586},"None",{"type":26,"value":588}," instead of ",{"type":16,"tag":97,"props":590,"children":592},{"className":591},[],[593],{"type":26,"value":594},"true",{"type":26,"value":572},{"type":16,"tag":97,"props":597,"children":599},{"className":598},[],[600],{"type":26,"value":601},"false",{"type":26,"value":580},{"type":16,"tag":97,"props":604,"children":606},{"className":605},[],[607],{"type":26,"value":608},"null",{"type":16,"tag":419,"props":610,"children":611},{},[612,617],{"type":16,"tag":84,"props":613,"children":614},{},[615],{"type":26,"value":616},"Double-encoded strings",{"type":26,"value":618},", where the JSON was serialized twice and arrives as one long escaped string",{"type":16,"tag":419,"props":620,"children":621},{},[622,627,629],{"type":16,"tag":84,"props":623,"children":624},{},[625],{"type":26,"value":626},"Smart quotes and trailing commas",{"type":26,"value":628}," that break ",{"type":16,"tag":97,"props":630,"children":632},{"className":631},[],[633],{"type":26,"value":634},"JSON.parse",{"type":16,"tag":80,"props":636,"children":637},{},[638,640,646],{"type":26,"value":639},"Instead of writing a fragile Code node with regex cleanup, add this operation between your AI node and the rest of your workflow. You can find the same cleanup patterns for other platforms in our ",{"type":16,"tag":66,"props":641,"children":643},{"href":642},"/blog/make-data-cleanup-snippets",[644],{"type":26,"value":645},"data cleanup snippets",{"type":26,"value":448},{"type":16,"tag":102,"props":648,"children":650},{"id":649},"where-to-find-it",[651],{"type":26,"value":652},"Where to find it",{"type":16,"tag":80,"props":654,"children":655},{},[656,658,663],{"type":26,"value":657},"The operation lives in the ",{"type":16,"tag":84,"props":659,"children":660},{},[661],{"type":26,"value":662},"CustomJS (PDF & File Toolkit)",{"type":26,"value":664}," node:",{"type":16,"tag":415,"props":666,"children":667},{},[668,680,698],{"type":16,"tag":419,"props":669,"children":670},{},[671,673,678],{"type":26,"value":672},"Add the ",{"type":16,"tag":84,"props":674,"children":675},{},[676],{"type":26,"value":677},"PDF Toolkit",{"type":26,"value":679}," node to your workflow",{"type":16,"tag":419,"props":681,"children":682},{},[683,685,690,692],{"type":26,"value":684},"Set ",{"type":16,"tag":84,"props":686,"children":687},{},[688],{"type":26,"value":689},"Resource",{"type":26,"value":691}," to ",{"type":16,"tag":97,"props":693,"children":695},{"className":694},[],[696],{"type":26,"value":697},"Data",{"type":16,"tag":419,"props":699,"children":700},{},[701,702,707,708],{"type":26,"value":684},{"type":16,"tag":84,"props":703,"children":704},{},[705],{"type":26,"value":706},"Operation",{"type":26,"value":691},{"type":16,"tag":97,"props":709,"children":711},{"className":710},[],[712],{"type":26,"value":528},{"type":16,"tag":102,"props":714,"children":716},{"id":715},"configuration",[717],{"type":26,"value":718},"Configuration",{"type":16,"tag":408,"props":720,"children":722},{"id":721},"node-parameters",[723],{"type":26,"value":724},"Node Parameters",{"type":16,"tag":726,"props":727,"children":728},"table",{},[729,753],{"type":16,"tag":730,"props":731,"children":732},"thead",{},[733],{"type":16,"tag":734,"props":735,"children":736},"tr",{},[737,743,748],{"type":16,"tag":738,"props":739,"children":740},"th",{},[741],{"type":26,"value":742},"Parameter",{"type":16,"tag":738,"props":744,"children":745},{},[746],{"type":26,"value":747},"Description",{"type":16,"tag":738,"props":749,"children":750},{},[751],{"type":26,"value":752},"Required",{"type":16,"tag":754,"props":755,"children":756},"tbody",{},[757,779],{"type":16,"tag":734,"props":758,"children":759},{},[760,769,774],{"type":16,"tag":761,"props":762,"children":763},"td",{},[764],{"type":16,"tag":84,"props":765,"children":766},{},[767],{"type":26,"value":768},"JSON Text",{"type":16,"tag":761,"props":770,"children":771},{},[772],{"type":26,"value":773},"Raw text that should contain JSON, e.g. an AI model answer",{"type":16,"tag":761,"props":775,"children":776},{},[777],{"type":26,"value":778},"Yes",{"type":16,"tag":734,"props":780,"children":781},{},[782,790,795],{"type":16,"tag":761,"props":783,"children":784},{},[785],{"type":16,"tag":84,"props":786,"children":787},{},[788],{"type":26,"value":789},"Strict Mode",{"type":16,"tag":761,"props":791,"children":792},{},[793],{"type":26,"value":794},"Strict mode: no content repairs. Only fence removal and block extraction are applied, the content itself is never modified",{"type":16,"tag":761,"props":796,"children":797},{},[798],{"type":26,"value":799},"No (default: off)",{"type":16,"tag":102,"props":801,"children":803},{"id":802},"example",[804],{"type":26,"value":805},"Example",{"type":16,"tag":80,"props":807,"children":808},{},[809],{"type":16,"tag":84,"props":810,"children":811},{},[812],{"type":26,"value":813},"Input (typical AI Agent output):",{"type":16,"tag":92,"props":815,"children":818},{"className":816,"code":817,"language":26,"meta":7,"style":7},"language-text shiki shiki-themes github-light","Sure! Here is the extracted data:\n\n```json\n{\n  \"name\": \"John Doe\",\n  \"active\": True,\n  \"score\": 87.5,\n}\n```\n\nLet me know if you need anything else.\n",[819],{"type":16,"tag":97,"props":820,"children":821},{"__ignoreMap":7},[822,833,842,850,859,868,877,886,895,904,912],{"type":16,"tag":823,"props":824,"children":827},"span",{"class":825,"line":826},"line",1,[828],{"type":16,"tag":823,"props":829,"children":830},{},[831],{"type":26,"value":832},"Sure! Here is the extracted data:\n",{"type":16,"tag":823,"props":834,"children":835},{"class":825,"line":450},[836],{"type":16,"tag":823,"props":837,"children":839},{"emptyLinePlaceholder":838},true,[840],{"type":26,"value":841},"\n",{"type":16,"tag":823,"props":843,"children":844},{"class":825,"line":455},[845],{"type":16,"tag":823,"props":846,"children":847},{},[848],{"type":26,"value":849},"```json\n",{"type":16,"tag":823,"props":851,"children":853},{"class":825,"line":852},4,[854],{"type":16,"tag":823,"props":855,"children":856},{},[857],{"type":26,"value":858},"{\n",{"type":16,"tag":823,"props":860,"children":862},{"class":825,"line":861},5,[863],{"type":16,"tag":823,"props":864,"children":865},{},[866],{"type":26,"value":867},"  \"name\": \"John Doe\",\n",{"type":16,"tag":823,"props":869,"children":871},{"class":825,"line":870},6,[872],{"type":16,"tag":823,"props":873,"children":874},{},[875],{"type":26,"value":876},"  \"active\": True,\n",{"type":16,"tag":823,"props":878,"children":880},{"class":825,"line":879},7,[881],{"type":16,"tag":823,"props":882,"children":883},{},[884],{"type":26,"value":885},"  \"score\": 87.5,\n",{"type":16,"tag":823,"props":887,"children":889},{"class":825,"line":888},8,[890],{"type":16,"tag":823,"props":891,"children":892},{},[893],{"type":26,"value":894},"}\n",{"type":16,"tag":823,"props":896,"children":898},{"class":825,"line":897},9,[899],{"type":16,"tag":823,"props":900,"children":901},{},[902],{"type":26,"value":903},"```\n",{"type":16,"tag":823,"props":905,"children":907},{"class":825,"line":906},10,[908],{"type":16,"tag":823,"props":909,"children":910},{"emptyLinePlaceholder":838},[911],{"type":26,"value":841},{"type":16,"tag":823,"props":913,"children":915},{"class":825,"line":914},11,[916],{"type":16,"tag":823,"props":917,"children":918},{},[919],{"type":26,"value":920},"Let me know if you need anything else.\n",{"type":16,"tag":80,"props":922,"children":923},{},[924],{"type":16,"tag":84,"props":925,"children":926},{},[927],{"type":26,"value":928},"Output:",{"type":16,"tag":92,"props":930,"children":934},{"className":931,"code":932,"language":933,"meta":7,"style":7},"language-json shiki shiki-themes github-light","{\n  \"result\": {\n    \"name\": \"John Doe\",\n    \"active\": true,\n    \"score\": 87.5\n  },\n  \"wasRepaired\": true,\n  \"notes\": [\n    \"Removed markdown code fences\",\n    \"Extracted JSON block from surrounding text\",\n    \"Repaired common issues (smart quotes, trailing commas, Python/JS literals)\"\n  ]\n}\n","json",[935],{"type":16,"tag":97,"props":936,"children":937},{"__ignoreMap":7},[938,946,960,984,1004,1021,1029,1049,1062,1074,1086,1094,1103],{"type":16,"tag":823,"props":939,"children":940},{"class":825,"line":826},[941],{"type":16,"tag":823,"props":942,"children":944},{"style":943},"--shiki-default:#24292E",[945],{"type":26,"value":858},{"type":16,"tag":823,"props":947,"children":948},{"class":825,"line":450},[949,955],{"type":16,"tag":823,"props":950,"children":952},{"style":951},"--shiki-default:#005CC5",[953],{"type":26,"value":954},"  \"result\"",{"type":16,"tag":823,"props":956,"children":957},{"style":943},[958],{"type":26,"value":959},": {\n",{"type":16,"tag":823,"props":961,"children":962},{"class":825,"line":455},[963,968,973,979],{"type":16,"tag":823,"props":964,"children":965},{"style":951},[966],{"type":26,"value":967},"    \"name\"",{"type":16,"tag":823,"props":969,"children":970},{"style":943},[971],{"type":26,"value":972},": ",{"type":16,"tag":823,"props":974,"children":976},{"style":975},"--shiki-default:#032F62",[977],{"type":26,"value":978},"\"John Doe\"",{"type":16,"tag":823,"props":980,"children":981},{"style":943},[982],{"type":26,"value":983},",\n",{"type":16,"tag":823,"props":985,"children":986},{"class":825,"line":852},[987,992,996,1000],{"type":16,"tag":823,"props":988,"children":989},{"style":951},[990],{"type":26,"value":991},"    \"active\"",{"type":16,"tag":823,"props":993,"children":994},{"style":943},[995],{"type":26,"value":972},{"type":16,"tag":823,"props":997,"children":998},{"style":951},[999],{"type":26,"value":594},{"type":16,"tag":823,"props":1001,"children":1002},{"style":943},[1003],{"type":26,"value":983},{"type":16,"tag":823,"props":1005,"children":1006},{"class":825,"line":861},[1007,1012,1016],{"type":16,"tag":823,"props":1008,"children":1009},{"style":951},[1010],{"type":26,"value":1011},"    \"score\"",{"type":16,"tag":823,"props":1013,"children":1014},{"style":943},[1015],{"type":26,"value":972},{"type":16,"tag":823,"props":1017,"children":1018},{"style":951},[1019],{"type":26,"value":1020},"87.5\n",{"type":16,"tag":823,"props":1022,"children":1023},{"class":825,"line":870},[1024],{"type":16,"tag":823,"props":1025,"children":1026},{"style":943},[1027],{"type":26,"value":1028},"  },\n",{"type":16,"tag":823,"props":1030,"children":1031},{"class":825,"line":879},[1032,1037,1041,1045],{"type":16,"tag":823,"props":1033,"children":1034},{"style":951},[1035],{"type":26,"value":1036},"  \"wasRepaired\"",{"type":16,"tag":823,"props":1038,"children":1039},{"style":943},[1040],{"type":26,"value":972},{"type":16,"tag":823,"props":1042,"children":1043},{"style":951},[1044],{"type":26,"value":594},{"type":16,"tag":823,"props":1046,"children":1047},{"style":943},[1048],{"type":26,"value":983},{"type":16,"tag":823,"props":1050,"children":1051},{"class":825,"line":888},[1052,1057],{"type":16,"tag":823,"props":1053,"children":1054},{"style":951},[1055],{"type":26,"value":1056},"  \"notes\"",{"type":16,"tag":823,"props":1058,"children":1059},{"style":943},[1060],{"type":26,"value":1061},": [\n",{"type":16,"tag":823,"props":1063,"children":1064},{"class":825,"line":897},[1065,1070],{"type":16,"tag":823,"props":1066,"children":1067},{"style":975},[1068],{"type":26,"value":1069},"    \"Removed markdown code fences\"",{"type":16,"tag":823,"props":1071,"children":1072},{"style":943},[1073],{"type":26,"value":983},{"type":16,"tag":823,"props":1075,"children":1076},{"class":825,"line":906},[1077,1082],{"type":16,"tag":823,"props":1078,"children":1079},{"style":975},[1080],{"type":26,"value":1081},"    \"Extracted JSON block from surrounding text\"",{"type":16,"tag":823,"props":1083,"children":1084},{"style":943},[1085],{"type":26,"value":983},{"type":16,"tag":823,"props":1087,"children":1088},{"class":825,"line":914},[1089],{"type":16,"tag":823,"props":1090,"children":1091},{"style":975},[1092],{"type":26,"value":1093},"    \"Repaired common issues (smart quotes, trailing commas, Python/JS literals)\"\n",{"type":16,"tag":823,"props":1095,"children":1097},{"class":825,"line":1096},12,[1098],{"type":16,"tag":823,"props":1099,"children":1100},{"style":943},[1101],{"type":26,"value":1102},"  ]\n",{"type":16,"tag":823,"props":1104,"children":1106},{"class":825,"line":1105},13,[1107],{"type":16,"tag":823,"props":1108,"children":1109},{"style":943},[1110],{"type":26,"value":894},{"type":16,"tag":102,"props":1112,"children":1114},{"id":1113},"output-fields",[1115],{"type":26,"value":1116},"Output Fields",{"type":16,"tag":726,"props":1118,"children":1119},{},[1120,1135],{"type":16,"tag":730,"props":1121,"children":1122},{},[1123],{"type":16,"tag":734,"props":1124,"children":1125},{},[1126,1131],{"type":16,"tag":738,"props":1127,"children":1128},{},[1129],{"type":26,"value":1130},"Field",{"type":16,"tag":738,"props":1132,"children":1133},{},[1134],{"type":26,"value":747},{"type":16,"tag":754,"props":1136,"children":1137},{},[1138,1154,1182],{"type":16,"tag":734,"props":1139,"children":1140},{},[1141,1149],{"type":16,"tag":761,"props":1142,"children":1143},{},[1144],{"type":16,"tag":84,"props":1145,"children":1146},{},[1147],{"type":26,"value":1148},"result",{"type":16,"tag":761,"props":1150,"children":1151},{},[1152],{"type":26,"value":1153},"The parsed JSON value, ready to use in downstream nodes",{"type":16,"tag":734,"props":1155,"children":1156},{},[1157,1165],{"type":16,"tag":761,"props":1158,"children":1159},{},[1160],{"type":16,"tag":84,"props":1161,"children":1162},{},[1163],{"type":26,"value":1164},"wasRepaired",{"type":16,"tag":761,"props":1166,"children":1167},{},[1168,1173,1175,1180],{"type":16,"tag":97,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":26,"value":594},{"type":26,"value":1174}," if any cleanup or repair was applied, ",{"type":16,"tag":97,"props":1176,"children":1178},{"className":1177},[],[1179],{"type":26,"value":601},{"type":26,"value":1181}," if the input parsed as-is",{"type":16,"tag":734,"props":1183,"children":1184},{},[1185,1193],{"type":16,"tag":761,"props":1186,"children":1187},{},[1188],{"type":16,"tag":84,"props":1189,"children":1190},{},[1191],{"type":26,"value":1192},"notes",{"type":16,"tag":761,"props":1194,"children":1195},{},[1196],{"type":26,"value":1197},"A list of the cleanup steps that were applied, useful for debugging",{"type":16,"tag":80,"props":1199,"children":1200},{},[1201],{"type":26,"value":1202},"If the text cannot be parsed even after cleanup, the node throws a clear error so you can catch it with n8n's error handling.",{"type":16,"tag":102,"props":1204,"children":1206},{"id":1205},"related",[1207],{"type":26,"value":1208},"Related",{"type":16,"tag":532,"props":1210,"children":1211},{},[1212,1219,1227,1236],{"type":16,"tag":419,"props":1213,"children":1214},{},[1215],{"type":16,"tag":66,"props":1216,"children":1217},{"href":509},[1218],{"type":26,"value":517},{"type":16,"tag":419,"props":1220,"children":1221},{},[1222],{"type":16,"tag":66,"props":1223,"children":1224},{"href":642},[1225],{"type":26,"value":1226},"Data cleanup snippets",{"type":16,"tag":419,"props":1228,"children":1229},{},[1230],{"type":16,"tag":66,"props":1231,"children":1233},{"href":1232},"/integration/n8n/parse-number",[1234],{"type":26,"value":1235},"Parse Localized Number",{"type":16,"tag":419,"props":1237,"children":1238},{},[1239],{"type":16,"tag":66,"props":1240,"children":1242},{"href":1241},"/integration/n8n/json-toon-converter",[1243],{"type":26,"value":1244},"JSON to TOON Converter",{"type":16,"tag":1246,"props":1247,"children":1248},"style",{},[1249],{"type":26,"value":1250},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":7,"searchDepth":450,"depth":450,"links":1252},[1253,1254,1257,1258,1259],{"id":649,"depth":450,"text":652},{"id":715,"depth":450,"text":718,"children":1255},[1256],{"id":721,"depth":455,"text":724},{"id":802,"depth":450,"text":805},{"id":1113,"depth":450,"text":1116},{"id":1205,"depth":450,"text":1208},"content:integration:n8n:ai-json-parser.md","integration/n8n/ai-json-parser.md","integration/n8n/ai-json-parser",1787727652683]