<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-dan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">sr-users <sr-users-bounces@lists.kamailio.org> on behalf of Fred Posner <fred@palner.com><br>
<b>Date: </b>Wednesday, November 24, 2021 at 10:11 PM<br>
<b>To: </b>sr-users@lists.kamailio.org <sr-users@lists.kamailio.org><br>
<b>Subject: </b>Re: [SR-Users] JSON Error<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:11.0pt">Are you verifying the document is valid JSON?<br>
<br>
Fred Posner | palner.com<br>
Matrix: @fred:matrix.lod.com<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>
>   * sr-users@lists.kamailio.org<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">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
> <br>
<br>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
  * sr-users@lists.kamailio.org<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">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<o:p></o:p></span></p>
</div>
</div>
</body>
</html>