Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit cdedbda

Browse files
committed
Change default config for .NET Core to emit camelCase properties
1 parent d31d87d commit cdedbda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ServiceStack.Text/JsConfig.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,11 @@ public static bool EmitCamelCaseNames
590590
{
591591
return (JsConfigScope.Current != null ? JsConfigScope.Current.EmitCamelCaseNames : null)
592592
?? sEmitCamelCaseNames
593+
#if !NETSTANDARD1_1
593594
?? false;
595+
#else
596+
?? true; //Follow default .NET Core JSON convention
597+
#endif
594598
}
595599
set
596600
{

0 commit comments

Comments
 (0)