In my application I have to work with jsons which contains duplicate names:
{ "a" : "qqq", "a" : "qqq" }
It is very convenient to parse json by BsonDocument.Parse, but it fails on json containing duplicate names:
System.InvalidOperationException : Duplicate element name 'a'.
It will be cool if we'll add a method with signature:
Unable to find source-code formatter for language: csharp. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
BsonDocument Parse(string json, bool allowDuplicateElementNames)