jsoncons version should update. the old version has a rookie mistake in src/jsoncons/json_serializer.hpp. bool is_same_line() const { return option_ = block_options::same_line; // should use '==' }