Skip to content

Unexpected nested arrays from std::vector #886

Description

@hoisunng

Bug Report

  • What is the issue you have?
    Unexpected nested arrays from std::vector

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

std::vector<int> v;
json j{v};
std::cout << j << std::endl;
  • What is the expected behavior?
    cout prints: []

  • And what is the actual behavior instead?
    cout prints: [[]]

  • Which compiler and operating system are you using? Is it a supported compiler?
    RHEL7 with GCC 6.3.1

  • Did you use a released version of the library or the version from the develop branch?
    Release Version 2.1.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    solution: proposed fixa fix for the issue has been proposed and waits for confirmation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions