|
Boost Users : |
Subject: [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 11:24:36
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
--
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