Boost logo

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 13:27:21


This issue also presents in 1.60

On Fri, Dec 18, 2015 at 8:24 AM, Millman, Mark <mark.millman_at_[hidden]>
wrote:

> I recently upgraded from 1.56 to 1.59 and my hundreds of well commented
> JSON parameter files now all fail on the first commented line. This is
> true for /* */ and // style comments.
>
> The exception.what() string thrown by
> boost::property_tree::read_json(filename,propertyTree) is
>
> filename.json(linenumber): expected key string.
>
> As I remove comments from my test JSON file the line number advances to
> the next comment.
>
> Any hints as to how to deal with this? Removing all my comments is not an
> option.
>
> Thanks, Mark
>
> --
>
>
>

-- 
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