Skip to content

Wide character strings not supported #216

@kalumekenge

Description

@kalumekenge
    std::wstring s1 = LR"({
  "pi": 3.141,
  "happy": true,
  "name": "Niels",
  "nothing": null,
  "answer": {
    "everything": 42
  },
  "list": [1, 0, 2],
  "object": {
    "currency": "USD",
    "value": 42.99
  }
})";
auto p0 = json::parse(s1);
auto p1 = p0.dump();
std::wcout << p1 << std::endl;

VS 2015 Community Edition
error C2665: 'nlohmann::basic_jsonstd::map,std::vector,std::string,bool,int64_t,uint64_t,double,std::allocator::parse': none of the 3 overloads could convert all the argument types
while trying to match the argument list '(std::wstring)'

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedsolution: wontfixthe issue will not be fixed (either it is impossible or deemed out of scope)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions