[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    Re: [opennms-discuss] problem in collecting json with names starting with a number
From:       "Roskens, Ronald" <Ronald.Roskens () biworldwide ! com>
Date:       2018-02-01 16:06:42
Message-ID: B6663E208B2DA14DBB3C6FABB9207F78ABD20615 () biusmb4
[Download RAW message or body]

[Attachment #2 (text/plain)]

If you are running 21, then the array is placed inside an "elements" object. Take a \
look at the JsonCollectorArrayIT unit test.

https://github.com/OpenNMS/opennms/blob/develop/protocols/xml/src/test/java/org/opennms/protocols/json/collector/JsonCollectorArrayIT.java


Ron

From: onmstester onmstester [mailto:onmstester@zoho.com]
Sent: Wednesday, January 31, 2018 10:48 PM
To: General OpenNMS Discussion
Cc: 'General OpenNMS Discussion'
Subject: Re: [opennms-discuss] problem in collecting json with names starting with a \
number

Thank you.
Since Elasticsearch's statistics Rest API does not comply with this rule i have to \
write my own http proxy between opennms and elasticsearch. Any idea about json array \
problem?

----------------------------------------------------------------------
This e-mail message is being sent solely for use by the intended recipient(s) and may \
contain confidential information. Any unauthorized review, use, disclosure or \
distribution is prohibited. If you are not the intended recipient, please contact the \
sender by phone or reply by e-mail, delete the original message and destroy all \
copies. Thank you.


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
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=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.colour
	{mso-style-name:colour;}
span.font
	{mso-style-name:font;}
span.size
	{mso-style-name:size;}
span.EmailStyle21
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
.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><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">If \
you are running 21, then the array is placed inside an &quot;elements&quot; object. \
Take a look at the JsonCollectorArrayIT unit test.<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:# \
1F497D">https://github.com/OpenNMS/opennms/blob/develop/protocols/xml/src/test/java/or \
g/opennms/protocols/json/collector/JsonCollectorArrayIT.java<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Ron<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> \
onmstester onmstester [mailto:onmstester@zoho.com] <br>
<b>Sent:</b> Wednesday, January 31, 2018 10:48 PM<br>
<b>To:</b> General OpenNMS Discussion<br>
<b>Cc:</b> 'General OpenNMS Discussion'<br>
<b>Subject:</b> Re: [opennms-discuss] problem in collecting json with names starting \
with a number<o:p></o:p></span></p> </div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Thank \
you.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Since \
Elasticsearch's statistics Rest API does not comply with this rule i have to write my \
own http proxy between opennms and elasticsearch.<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;">Any \
idea about json array problem?<o:p></o:p></span></p> </div>
</div>
</div>
</div>

<HR>This e-mail message is being sent solely for use by the intended recipient(s) and \
may contain confidential information. Any unauthorized review, use, disclosure or \
distribution is prohibited. If you are not the intended recipient, please contact the \
sender by phone or reply by e-mail, delete the original message and destroy all \
copies. Thank you.<BR> </body>
</html>


[Attachment #4 (--===============3999731623605757631==)]
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic