Re: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-24 Thread Stephen Hemminger
On Fri, 24 Jun 2022 13:29:46 +0200 Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Friday, 24 June 2022 13.17 > > > > On Fri, Jun 24, 2022 at 09:00:38AM +0100, Bruce Richardson wrote: > > > On Thu, Jun 23, 2022 at 08:48:21PM +0200, Morten Brørup wr

RE: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-24 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Friday, 24 June 2022 13.17 > > On Fri, Jun 24, 2022 at 09:00:38AM +0100, Bruce Richardson wrote: > > On Thu, Jun 23, 2022 at 08:48:21PM +0200, Morten Brørup wrote: > > > > From: Stephen Hemminger [mailto:step...@networkplumber.or

Re: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-24 Thread Bruce Richardson
On Fri, Jun 24, 2022 at 09:00:38AM +0100, Bruce Richardson wrote: > On Thu, Jun 23, 2022 at 08:48:21PM +0200, Morten Brørup wrote: > > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > > Sent: Thursday, 23 June 2022 20.40 > > > > > > On Thu, 23 Jun 2022 20:34:07 +0200 > > > Morten

Re: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-24 Thread Bruce Richardson
On Thu, Jun 23, 2022 at 08:34:07PM +0200, Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Thursday, 23 June 2022 18.43 > > > > For string values returned from telemetry, escape any values that > > cannot > > normally appear in a json string. According

Re: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-24 Thread Bruce Richardson
On Thu, Jun 23, 2022 at 08:48:21PM +0200, Morten Brørup wrote: > > From: Stephen Hemminger [mailto:step...@networkplumber.org] > > Sent: Thursday, 23 June 2022 20.40 > > > > On Thu, 23 Jun 2022 20:34:07 +0200 > > Morten Brørup wrote: > > > > > > From: Bruce Richardson [mailto:bruce.richard...@in

RE: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-23 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Thursday, 23 June 2022 20.40 > > On Thu, 23 Jun 2022 20:34:07 +0200 > Morten Brørup wrote: > > > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > > Sent: Thursday, 23 June 2022 18.43 > > > > > > For string valu

Re: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-23 Thread Stephen Hemminger
On Thu, 23 Jun 2022 20:34:07 +0200 Morten Brørup wrote: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Thursday, 23 June 2022 18.43 > > > > For string values returned from telemetry, escape any values that > > cannot > > normally appear in a json string. According to th

RE: [RFC PATCH 2/6] telemetry: fix escaping of invalid json characters

2022-06-23 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Thursday, 23 June 2022 18.43 > > For string values returned from telemetry, escape any values that > cannot > normally appear in a json string. According to the json spec[1], the > characters than need to be handled are control c