<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Need to find lines that are missing a comma at the end.]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1676664535802-bbe69063-4468-48ea-ae9a-bbb6767c319a-image.png" alt="bbe69063-4468-48ea-ae9a-bbb6767c319a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Hello! I have run into an issue regarding a slight error in this file which results in the entire file not functioning as it should, and I believe this is due to a deleted comma in one of the rows. As you can see in the attached image, each line ends with a comma but, considering the size of the file (roughly 5000 lines of about the same length as what is shown), it is practically impossible for me to find the error manually. I tried using Ctrl+F/Ctrl+H to find the missing comma but am not sure how to use it effectively. Does anyone know how to find this error <em>with or without</em> Ctrl+H?</p>
<p dir="auto">EDIT: Upon using Ctrl+H to search for missing commas, none were found. I believe there is some other undisclosed issue with one of the lines.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/24153/need-to-find-lines-that-are-missing-a-comma-at-the-end</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Jul 2026 04:06:39 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/24153.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Feb 2023 20:13:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Sun, 19 Feb 2023 00:12:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a><br />
Looks like you got this fixed, but just wanted to chime in that <a href="https://github.com/molsonkiko/JsonToolsNppPlugin" rel="nofollow ugc">JsonTools</a> can indeed find the errors in your JSON file (as PeterJones mentioned), but you can also just turn on linting and then you can parse the JSON with any number of missing commas (as well as various other syntax errors) and pretty-print it as syntactically valid JSON.</p>
<p dir="auto">If your JSON file had a truly preposterous number of such syntax errors (say on the order of hundreds of thousands), the linter would probably use a lot of memory though.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84261</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84261</guid><dc:creator><![CDATA[Mark Olson]]></dc:creator><pubDate>Sun, 19 Feb 2023 00:12:15 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Sat, 18 Feb 2023 01:07:41 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: monarchia">@<bdi>monarchia</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: peterjones">@<bdi>peterjones</bdi></a> and <strong>all</strong>,</p>
<p dir="auto">Well, <a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: monarchia">@<bdi>monarchia</bdi></a>, after using the <strong><code>Irfanview</code></strong> sofware with a <strong>recognition</strong> characters plugin and some minor ajustments, I was able to <strong>extract</strong> this text from your <strong>first</strong> image which can be transformed into this <strong>functional</strong> <strong><code>json</code></strong> block, below :</p>
<pre><code class="language-json">{
 "narrator.position.object list": "Selected row element %s out of %s",
 "narration.suggestion.tooltip": "Selected suggestion %d out of %d: %s (%s)",
 "narration.suggestion": "Selected suggestion %d out of %d: %s",
 "narration.button": "Button: %s",
 "narration.button.usage.focused": "Press Enter to activate",
 "narration.button.usage.hovered": "Left click to activate",
 "narration.cycle button.usage.focused": "Press Enter to si~tc:~ to %s",
 "narration.cycle~button.usage.hovered": "Left click to switc:~ to %s",
 "narration.checkbox": "Checkbox: %s",
 "narration.checkbox.usage.focused": "Press Enter to toggle",
 "narration.checkbox.usage.hovered": "Left click to toggle",
 "narration.recipe": "Reciple for %s",
 "narration.recipe.usage": "Left click to select",
 "narration.recipe.usage.miore": "Right click to show miore reclpes",
 "narration.selection.usage": "Press up and down buttons to nove to another entry",
 "narration.comqoonent~list.usage": "Press Tab to navigate to next element",
 "narration.slider.usage.focused": "Press left or right keyboard buttons to change value",
 "narration.slider.usage.hovered": "Drag slider to change value",
 "narration.edit~box": "Edit box: %s"
}
</code></pre>
<hr />
<p dir="auto">Now, <a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: monarchia">@<bdi>monarchia</bdi></a>, try the following method to get <strong>all</strong> specific lines which do <strong>not</strong> have the <strong>right</strong> format :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</p>
</li>
<li>
<p dir="auto"><strong>Untick</strong> all <strong>box</strong> options</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?x-s) ^ \h* " .+? " : \x20 " .+ ? " , $ (*SKIP) (*F) | ^ .+</code></strong></p>
</li>
<li>
<p dir="auto">Check the <strong>2</strong> options <strong><code>Bookmark line</code></strong>, and <strong><code>Purge for each search</code></strong></p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> search <strong>mode</strong></p>
</li>
<li>
<p dir="auto">Move to the <strong>very beginning</strong> of your <strong><code>json</code></strong> file</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
<li>
<p dir="auto">Now, hit the <strong><code>F2</code></strong> key, repeatedly, to get the <strong>different</strong> lines which do <strong>not</strong> satisfy your <strong>format</strong> !</p>
</li>
</ul>
<p dir="auto">Remark the part <strong><code>\h*</code></strong>, at <strong>beginning</strong> of the regex, which could explain why the <strong>previous</strong> <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: alan-kilborn">@<bdi>alan-kilborn</bdi></a>’s solution found <strong>nothing</strong> !</p>
<hr />
<p dir="auto">Running this regex against the <strong><code>json</code></strong> block above, <strong>previously</strong> copied in a <strong>new</strong> tab, should obviously mark the lines <strong><code>{</code></strong> and <strong><code>}</code></strong>, as well as the <strong>last</strong> data line <strong><code> "narration.edit~box": "Edit box: %s"</code></strong> which does <strong>not</strong> end with a <strong><code>comma</code></strong> character !</p>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
<p dir="auto"><strong>PS</strong> :</p>
<p dir="auto"><strong>Alan</strong>, in order to mark all lines <strong>not</strong> ending with a <strong><code>comma</code></strong> char, I suppose that the regex <strong><code>[^,\r\n]$</code></strong> is a <strong>better</strong> bet !</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84243</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84243</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Sat, 18 Feb 2023 01:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 21:27:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a> ,</p>
<p dir="auto">The other thing you can do, if you have the original version of the JSON file, is to use the ComparePlus plugin and compare the old to the new, and thus see all the changes that were made.  That might help you narrow down where the problem is.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84241</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84241</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Feb 2023 21:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 21:23:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> It is a JSON file, yes. I didn’t insert any characters or information that Minecraft is incapable of handling so I really feel as though it’s something vital that I accidentally deleted. I will install the plugin and see if it helps. Thank you for your assistance.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84240</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84240</guid><dc:creator><![CDATA[Monarchia]]></dc:creator><pubDate>Fri, 17 Feb 2023 21:23:52 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 21:15:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a></p>
<p dir="auto">Offhand, I can’t see why the marking operation didn’t work for you.  Of course, we’re just working from pictures, not actual sample text.  Usually the first thing we do is ask for real text.  This case seemed so simple, though… :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84239</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84239</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Feb 2023 21:15:01 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 21:09:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a> ,</p>
<p dir="auto">Your file format looks rather JSON-like.  If the simple checks that <a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> has pointed out are not finding anything, you might try installing the JSONTools plugin which (IIRC) can do a syntax check on JSON, and might take you to the line where it’s wrong.  If that doesn’t find it, then it’s probably not a <em>syntax</em> error, and it’s instead a data-error: <em>ie</em>, some valid JSON string is something that the minecraft engine cannot handle, hence your problem – but if that’s the case, we won’t be able to help you, because this is not a minecraft-modding forum.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84238</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84238</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Fri, 17 Feb 2023 21:09:09 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 20:42:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a><br />
I used the Mark operation and did not find any matching results (There is a nonzero chance I did it wrong)</p>
<p dir="auto">I would like to provide more information about how the data is being utilized but struggle to describe how it is as I am not very experienced in this field. For what it’s worth, the information is being accessed by Minecraft and applied to specific text labels spread out through different areas of the game. Here’s another screenshot with more data that is (hopefully) more useful. Any ideas? Thank you for your help up to this point, by the way.</p>
<p dir="auto"><img src="/assets/uploads/files/1676666495464-094b852f-658a-4191-b28b-a2df93aeeee8-image.png" alt="094b852f-658a-4191-b28b-a2df93aeeee8-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/84237</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84237</guid><dc:creator><![CDATA[Monarchia]]></dc:creator><pubDate>Fri, 17 Feb 2023 20:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 20:32:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a></p>
<p dir="auto">Hm, well from the sample data we can maybe draw some conclusions…</p>
<p dir="auto">You might try a <em>Mark</em> operation using the following regular expression:</p>
<p dir="auto"><code>(?-s)^".+?": ".+?",$</code></p>
<p dir="auto">It should turn the background of all lines red that conform to what seems to be your format.</p>
<p dir="auto">Note that this is fairly “loose” as I really have no idea what truly constitutes a valid line format that is accepted by whatever tool is using the file.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84236</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84236</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Feb 2023 20:32:19 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 20:24:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> Thank you for your response. I have tried both and neither has come up with anything worth noting… so I suppose the error is not due to the lack of a comma.  Do you know of any way to perhaps search for the format of each line and accordingly isolate lines that don’t fit the usual format? I’m not sure if that request is within NP++'s capabilities.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84235</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84235</guid><dc:creator><![CDATA[Monarchia]]></dc:creator><pubDate>Fri, 17 Feb 2023 20:24:50 GMT</pubDate></item><item><title><![CDATA[Reply to Need to find lines that are missing a comma at the end. on Fri, 17 Feb 2023 20:22:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/monarchia" aria-label="Profile: Monarchia">@<bdi>Monarchia</bdi></a></p>
<p dir="auto">Try searching for <code>[^,]$</code> after setting the <em>Search mode</em> to <em>Regular expression</em>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/84234</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/84234</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Fri, 17 Feb 2023 20:22:20 GMT</pubDate></item></channel></rss>