Skip to content

Commit

Permalink
Merge pull request #9393 from BillHiebert/dev/billhie/SupportStringAr…
Browse files Browse the repository at this point in the history
…ray's

Support string[] launchSettings.json properties
  • Loading branch information
tmeschter authored Feb 7, 2024
2 parents 48dc077 + d873981 commit b6e24bd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ LaunchProfile ReadProfile(string name)
JsonToken.Boolean => (bool)reader.Value!,
JsonToken.Integer => checked((int)(long)reader.Value!),
JsonToken.StartObject => (jsonSerializer ??= JsonSerializer.CreateDefault()).Deserialize<Dictionary<string, object>>(reader),
JsonToken.StartArray => (jsonSerializer ??= JsonSerializer.CreateDefault()).Deserialize<string[]>(reader),
JsonToken.String => (string)reader.Value!,
_ => null
};
Expand Down

0 comments on commit b6e24bd

Please sign in to comment.