EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024 Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
<== Date ==> <== Thread ==>

Subject: Re: pvget -M json is JSON5
From: Michael Davidsaver via Core-talk <core-talk at aps.anl.gov>
To: NICOLE Remi <REMI.NICOLE at cea.fr>
Cc: "core-talk at aps.anl.gov" <core-talk at aps.anl.gov>
Date: Wed, 7 Feb 2024 08:54:51 -0800
On 2/7/24 02:28, NICOLE Remi via Core-talk wrote:
Hello everyone,

I planned on upgrading EPICS from 7.0.7 to 7.0.8 in our build system,
but had some errors in our PV access tests.

Apparently, in 7.0.8, the 'pvget my:pv -M json' now returns JSON5:

     my:pv:name
{value:42.0,alarm:{severity:0,status:0,message:""},display:{description
:"My PV description"}}

Where before in 7.0.7, it returnd standard JSON:

     my:pv:name
{"value":42.0,"alarm":{"severity":0,"status":0,"message":""},"display":
{"description":"My PV description"}}

Was this a conscious choice? I don't see the change in the release
notes. I think for interoperability, standard JSON would be better.

This change was the result of:

https://github.com/epics-base/pvDataCPP/pull/93

Further changing to add "-M json5" seems reasonable
to me.  I will let Andrew say more.


Replies:
Re: pvget -M json is JSON5 Johnson, Andrew N. via Core-talk
References:
pvget -M json is JSON5 NICOLE Remi via Core-talk

Navigate by Date:
Prev: pvget -M json is JSON5 NICOLE Remi via Core-talk
Next: Re: pvget -M json is JSON5 Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
Navigate by Thread:
Prev: pvget -M json is JSON5 NICOLE Remi via Core-talk
Next: Re: pvget -M json is JSON5 Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <2024
ANJ, 07 Feb 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·