Describe the problem/error/question
My workflow is basically reading a txt file and then convert it to json but it is stuck at Edit Field2 node, it won’t validate as a proper json. I already have escaped double quotes & linebreaks but I don’t know what is making it invalid. For some odd reason if I remove the Read from Disk node and put my data into a Edit Field Node it will then validate as a json
This is what’s inside summary.txt :
[CENTER][IMG]https://i.postimg.cc/jdkhHwXp/309192.jpg[/IMG][/CENTER]
[B]Synopsis[/B]
Not even a hero, Takumi Iruma gets accidentally mixed in with a group of heroes chosen to be summoned to another world. As compensation for the mix-up, a goddess offers him the right to choose any skill he wishes for! Hoping for a peaceful and quiet life that has nothing to do with fighting or going into battle, he chooses a seemingly boring creation skill. However, it turns out "alchemy" is the most powerful skill that allows him to create everything from a holy sword to flying ships! This cheat skill he unexpectedly acquired turns him into a wealthy merchant and makes him undefeatable in battles! A heartwarming adventure story about (possibly) the most powerful alchemist in another world!
[B]Alternative Titles[/B]
Synonyms: Someday Will I Be the Greatest Alchemist?
Japanese: いずれ最強の錬金術師?
[B]Information[/B]
Episodes: Unknown
Broadcast: Wednesdays at 22:00 (JST)
Producers: Pony Canyon, Jinnan Studio
Licensors: None found
Studios: Studio Comet
Genres: Adventure, Fantasy
Theme: Isekai
Duration: 23 min.
MAL: [URL]https://myanimelist.net/anime/58822[/URL]
[B]PV[/B]
[MEDIA=youtube]-qZJ9dD7KlU[/MEDIA]
[boxinfo]File Information[/boxinfo]
Group: SubsPlease
Video: 720p = 1280x720 | 1080p = 1920x1080 | AVC 23.976 FPS
Audio: Japanese AAC
Subtitles: English ASS
Container: MKV
What is the error message (if any)?
The ‘JSON Output’ in item 0 contains invalid JSON
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- **n8n version:**1.81.4
- **Database (default: SQLite):**default
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**default
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**npm
- **Operating system:**Windows Server 2022