|
Boost Users : |
Subject: Re: [Boost-users] boost::property_tree::read_json fails on previously supported comments 1.59
From: Millman, Mark (mark.millman_at_[hidden])
Date: 2015-12-18 14:14:17
Yes, I understand and acknowledge that unfortunately JSON does not
officially support comments. I consider it a significant issue with the
standard. I like to use JSON in preference to XML (let alone INI) for
parameter files and have a considerable suite of programs that leverage
it. The parameter files can be quite complex and the master templates are
all annotated to provide users with the acceptable options and ranges.
So, it's unfortunate but I'll blame JSON and not Boost. I'll just write a
file-to-stream reader that strips out the comments and pass the stream to
read_json.
Still a "Booster" Mark.
(How much do you want to be that they add comments to the JSON standard
next month?) msm ;-)
On Fri, Dec 18, 2015 at 11:05 AM, AgustÃn K-ballo Bergé <
kaballo86_at_[hidden]> wrote:
> On 12/18/2015 3:51 PM, Millman, Mark wrote:
>
>> If this is an official upgrade -- to no longer support comments -- then
>> I'll write myself a file-to-stream comment stripper and pass the stream
>> to read_json.
>>
>> As a consumer of JSON and Boost it seems like a poor choice to drop
>> something that is so useful and has been supported for so long.
>>
>
> I understand your position, but something "just working" is not the same
> than something being supported. I cannot find any mention of nonstandard
> comment support in the documentation for 1.58. All I see is a link to a
> Wikipedia article, which reads "JSON does not provide or allow any sort of
> comment syntax".
>
>
> Regards,
> --
> AgustÃn K-ballo Bergé.-
> http://talesofcpp.fusionfenix.com
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
-- Mark Millman | Mizar, LLC mark.millman_at_[hidden] | www.mizar.com (702) 799-9968 9908 Alegria Dr | Las Vegas, NV 89144 The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net