File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 22using System . Text ;
33using System . Text . Json ;
44using System . Reflection ;
5+ using System . Text . Encodings . Web ;
6+ using System . Text . Json . Serialization ;
57
68namespace SQLiteSharp ;
79
@@ -150,10 +152,12 @@ public string GetSqlDeclaration(SqliteColumn column) {
150152
151153 private void AddDefaultTypeSerializers ( ) {
152154 JsonSerializerOptions jsonOptions = new ( ) {
155+ NumberHandling = JsonNumberHandling . AllowNamedFloatingPointLiterals | JsonNumberHandling . AllowReadingFromString ,
156+ AllowTrailingCommas = true ,
153157 IncludeFields = true ,
154158 NewLine = "\n " ,
155- AllowTrailingCommas = true ,
156159 ReadCommentHandling = JsonCommentHandling . Skip ,
160+ Encoder = JavaScriptEncoder . UnsafeRelaxedJsonEscaping ,
157161 } ;
158162 RegisterType < object > (
159163 sqliteType : SqliteType . Text ,
You can’t perform that action at this time.
0 commit comments