Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- json::Builder{}.StartArray().StartDict().EndDict().Value(1).EndArray().Build(); //good
- json::Builder{}.StartDict().Key("1").StartArray().EndArray().Key("2").Value(2).EndDict().Build();// good
- //logic_error
- json::Builder{}
- .StartArray()
- .StartDict()
- .Key("1"s).Value(12)
- .EndDict()
- .EndDict()
- .Build()
- json::Builder{}
- .StartDict()
- .Key("1"s)
- .StartArray()
- .Value(12)
- .EndDict()
- .EndDict()
- .Build()
- json::Builder{}
- .StartDict()
- .Key("1"s)
- .StartArray()
- .Value(12)
- .EndArray()
- .EndArray()
- .Build()
- json::Builder{}
- .StartArray()
- .StartDict()
- .Key("1"s).Value(12)
- .EndArray()
- .EndDict()
- .Build()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement