Skip to content

JSON into vector #335

Closed
Closed

Description

@Lerian715

Hi!
Is it possible to convert directly stream into vector? For eg.
load file with JSON >> create vector on this data

Activity

  1. nlohmann commented on Oct 16, 2016

    @nlohmann
    Owner

    You may have a look at #332 (comment). If this does not help, please provide a concrete example.

  2. ibitton commented on Oct 20, 2016

    @ibitton

    I think you should try:
    auto vec = myJSON.get<vector<T>>();

  3. nlohmann commented on Oct 22, 2016

    @nlohmann
    Owner

    @ibitton Can we close this issue?

  4. vertisan commented on Oct 22, 2016

    @vertisan

    Yes

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions