mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
fix: update .gitignore to exclude macOS system files and simplify JSON parsing code
This commit is contained in:
parent
ae47edcab6
commit
4143e1664c
2 changed files with 1 additions and 8 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -397,3 +397,4 @@ FodyWeavers.xsd
|
|||
# JetBrains Rider
|
||||
*.sln.iml
|
||||
*.projectinfo
|
||||
.DS*
|
||||
|
|
|
|||
|
|
@ -160,11 +160,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
/// <returns></returns>
|
||||
public static JObject ParseObject(string json)
|
||||
{
|
||||
#if NET6_0
|
||||
using (var reader = new JsonTextReader(new System.IO.StringReader(json)))
|
||||
#else
|
||||
using (var reader = new JsonTextReader(new System.IO.StringReader(json)))
|
||||
#endif
|
||||
{
|
||||
var startDepth = reader.Depth;
|
||||
var obj = JObject.Load(reader);
|
||||
|
|
@ -181,11 +177,7 @@ namespace PepperDash.Core.JsonToSimpl
|
|||
/// <returns></returns>
|
||||
public static JArray ParseArray(string json)
|
||||
{
|
||||
#if NET6_0
|
||||
using (var reader = new JsonTextReader(new System.IO.StringReader(json)))
|
||||
#else
|
||||
using (var reader = new JsonTextReader(new System.IO.StringReader(json)))
|
||||
#endif
|
||||
{
|
||||
var startDepth = reader.Depth;
|
||||
var obj = JArray.Load(reader);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue