﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>LogViewPlus Support » LogViewPlus Support » Help &amp; Support  » Can't get JSON working</title><generator>InstantForum 2017-1 Final</generator><description>LogViewPlus Support</description><link>https://www.logviewplus.com/forum/</link><webMaster>LogViewPlus Support</webMaster><lastBuildDate>Sat, 11 Apr 2026 06:05:42 GMT</lastBuildDate><ttl>20</ttl><item><title>Can't get JSON working</title><link>https://www.logviewplus.com/forum/post/1852</link><description>Hi,&amp;nbsp;&lt;br/&gt;&lt;br/&gt;I've got a pretty basic JSON log file and I can't figure out how to get the Parser Wizard to not combine the entire file into a single line. &lt;br/&gt;&lt;br/&gt;I've removed every element except for the element I'm using for the Date Time so my parser just looks like this at this point: &lt;br/&gt;&lt;br/&gt;&lt;span id="if_insertedNode_1695331132145"&gt;[code]{&lt;br/&gt;&amp;nbsp; "creationTime": "%d{Elapsed}",&lt;br/&gt;&amp;nbsp; &lt;br/&gt;}[/code]&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;The file as a whole looks like this (sanitized):&lt;br/&gt; &lt;br/&gt;&lt;span id="if_insertedNode_1695331231340"&gt;[code][{"id":"20230912-1300258590-00015-83784","creationTime":1694523625859,"resolvedTime":null,"acknowledgedBy":null,"scheduleFixTime":null,"scheduleFixInstruction":null,"lastUpdateSequence":49534,"assertionDetails":[{"labels":[],"state":"TRANSIENT","assertTime":1694523625857,"remitTime":0,"message":"Logo Insertion is disabled according to schedule. "}]}, ... ][/code]&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;Any suggestions?</description><pubDate>Fri, 22 Sep 2023 15:15:49 GMT</pubDate><dc:creator>jpooley_hearst</dc:creator></item><item><title>RE: Can't get JSON working</title><link>https://www.logviewplus.com/forum/post/1855</link><description>Usually log files are written one line at a time.&amp;nbsp; In this case, your whole log file appears to be written all at the same time.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;In other words, most json log files are not actually valid json.&amp;nbsp; The individual log entries represent valid JSON, but not the whole file.&amp;nbsp; In your case, the whole file is one big json block.&lt;br/&gt;&lt;br/&gt;So this is an unusual use case for us.&amp;nbsp; At a minimum, I will update the documentation to reflect this.&amp;nbsp; I would prefer to fix the underlying issue, but this may not be possible.&amp;nbsp; The relationship between log line / log entry is assumed in multiple places.&lt;br/&gt;&lt;br/&gt;In the meantime, if you are familiar with Python, you may be able to &lt;a href="https://stackoverflow.com/questions/12943819/how-to-prettyprint-a-json-file" id="if_insertedNode_1695395625638"&gt;pretty print&lt;/a&gt; the log file before opening it.&amp;nbsp; This could be done as an &lt;a href="https://www.logviewplus.com/docs/open_actions.html" id="if_insertedNode_1695395683921"&gt;open action&lt;/a&gt;.&lt;br/&gt;&lt;br/&gt;Thanks for bringing this issue to our attention.&lt;br/&gt;&lt;br/&gt;Toby&amp;nbsp; </description><pubDate>Fri, 22 Sep 2023 15:15:49 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item><item><title>RE: Can't get JSON working</title><link>https://www.logviewplus.com/forum/post/1854</link><description>Hi yes when I open the JSON file with Notepad ++ it shows only 1 line&lt;br/&gt;&lt;br/&gt;But TBH this is what I would expect from a JSON file&lt;br/&gt;&lt;br/&gt;I'd have to go write a Python script to figure out where each item in the list [] starts and ends to add a newline, as one of the elements of each entry is in itself a list [] which will contain commas so it's not as simple as find and replace commas with a newline&lt;br/&gt;&lt;br/&gt;Is it possible that more advanced JSON support could become a feature request? I can email in this log file if you want an example. &lt;br/&gt;&lt;br/&gt;Although I am even more confused because according to this page LogViewPlus should already support this &lt;a href="https://www.logviewplus.com/docs/json_parser.html"&gt;https://www.logviewplus.com/docs/json_parser.html&lt;/a&gt;</description><pubDate>Fri, 22 Sep 2023 14:25:47 GMT</pubDate><dc:creator>jpooley_hearst</dc:creator></item><item><title>RE: Can't get JSON working</title><link>https://www.logviewplus.com/forum/post/1853</link><description>Is your log file one line of text?&amp;nbsp; &lt;br/&gt;&lt;br/&gt;I think the problem might by that you have an array of log entries and LogViewPlus is struggling to determine where one line ends and the next begins.&amp;nbsp; LogViewPlus expects at most one log entry per log line.&lt;br/&gt;&lt;br/&gt;If you were to add new lines manually between the log entries LogViewPlus should be able to parse the file.&amp;nbsp; This might help with determining if this is the issue.</description><pubDate>Fri, 22 Sep 2023 09:16:57 GMT</pubDate><dc:creator>LogViewPlus Support</dc:creator></item></channel></rss>