<div dir="auto">Another option is to enhance the error log by printing out the string and recompile. This will give you the string, but not the location in your script.</div><div dir="auto">Troubleshooting is always *fun*.</div><div dir="auto"><br></div><div dir="auto">-ovidiu</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 25, 2021 at 21:00 Daniel W. Graham <<a href="mailto:dan@cmsinter.net">dan@cmsinter.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">



<div>
<div dir="ltr">
<div></div>
<div>
<div dir="ltr">Thats what I was hoping to avoid unless there was an alternate option.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">-dan</div>
<div id="m_7141540988978569999ms-outlook-mobile-signature" dir="ltr"><br>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_7141540988978569999divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)"><b style="font-family:Calibri,sans-serif">From:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank" style="font-family:Calibri,sans-serif">sr-users-bounces@lists.kamailio.org</a>> on behalf of Ovidiu Sas <<a href="mailto:osas@voipembedded.com" target="_blank" style="font-family:Calibri,sans-serif">osas@voipembedded.com</a>><br>
<b style="font-family:Calibri,sans-serif">Sent:</b> Wednesday, November 24, 2021 10:51:33 PM<br>
<b style="font-family:Calibri,sans-serif">To:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank" style="font-family:Calibri,sans-serif">sr-users@lists.kamailio.org</a>></font></div></div><div><div id="m_7141540988978569999divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(0,0,0)"><br>
<b style="font-family:Calibri,sans-serif">Subject:</b> Re: [SR-Users] JSON Error</font>
<div> </div>
</div>
<div>
<div dir="auto">Add a log in the config on each location and correlate with the error log.</div>
<div dir="auto"><br>
</div>
<div dir="auto">-ovidiu</div>
<div><br>
<div>
<div dir="ltr">On Wed, Nov 24, 2021 at 22:37 Daniel W. Graham <<a href="mailto:dan@cmsinter.net" target="_blank">dan@cmsinter.net</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div lang="EN-US" style="word-wrap:break-word">
<div>
<p><span style="font-size:11pt">That’s what I’m looking to do, but there are lots of locations in the config file json is used and the error doesn’t give any indication what call to jansson_get is causing the error.<u></u><u></u></span></p>
<p><span style="font-size:11pt"><u></u> <u></u></span></p>
<p><span style="font-size:11pt">-dan<u></u><u></u></span></p>
</div>
</div>
<div lang="EN-US" style="word-wrap:break-word">
<div>
<p><span style="font-size:11pt"><u></u> <u></u></span></p>
<div style="border-style:solid none none;border-top-width:1pt;padding:3pt 0in 0in;border-top-color:rgb(181,196,223)">
<p style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> on behalf of Fred Posner <<a href="mailto:fred@palner.com" target="_blank">fred@palner.com</a>><br>
<b>Date: </b>Wednesday, November 24, 2021 at 10:11 PM<br>
<b>To: </b><a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a> <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Subject: </b>Re: [SR-Users] JSON Error<u></u><u></u></span></p>
</div>
<div>
<p style="margin-bottom:12pt"><span style="font-size:11pt">Are you verifying the document is valid JSON?<br>
<br>
Fred Posner | <a href="http://palner.com" target="_blank">palner.com</a><br>
Matrix: @fred:<a href="http://matrix.lod.com" target="_blank">matrix.lod.com</a><br>
o: +1 (212) 937-7844<br>
<br>
On 11/24/21 7:47 PM, Daniel W. Graham wrote:<br>
> My log is filled with this and have been unsuccessful locating<br>
> additional information by increasing debug level.<br>
> <br>
>  <br>
> <br>
> Any thoughts on how to quickly isolate?<br>
> <br>
>  <br>
> <br>
> /usr/local/sbin/kamailio[7678]: ERROR: jansson [jansson_funcs.c:48]:<br>
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'<br>
> expected near end of file<br>
> <br>
> /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:46]:<br>
> janssonmod_get_helper(): failed to parse json:<br>
> <br>
> /usr/local/sbin/kamailio[7677]: ERROR: jansson [jansson_funcs.c:48]:<br>
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'<br>
> expected near end of file<br>
> <br>
> /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:46]:<br>
> janssonmod_get_helper(): failed to parse json:<br>
> <br>
> /usr/local/sbin/kamailio[7675]: ERROR: jansson [jansson_funcs.c:48]:<br>
> janssonmod_get_helper(): json error at line 1, col 0: '[' or '{'<br>
> expected near end of file<br>
> <br>
>  <br>
> <br>
> -dan<br>
> <br>
>  <br>
> <br>
> <br>
> __________________________________________________________<br>
> Kamailio - Users Mailing List - Non Commercial Discussions<br>
>   * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
> Edit mailing list options or unsubscribe:<br>
>   * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
> <br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<u></u><u></u></span></p>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
-- <br>
<div dir="ltr">VoIP Embedded, Inc.<br>
<a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a></div>
</div>
</div>

__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
  * <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">VoIP Embedded, Inc.<br><a href="http://www.voipembedded.com" target="_blank">http://www.voipembedded.com</a></div>