From 85e7202104235ed16e07a5b93e30699b9488dd02 Mon Sep 17 00:00:00 2001 From: svenskapojkarna Date: Wed, 26 Oct 2022 09:02:39 +0300 Subject: [PATCH] ISSUE-8: Updated JUST.Net dependency for JsonMapper --- .../Frends.Community.JSON.csproj | 4 ++-- Frends.Community.JSON/JsonTasks.cs | 3 ++- README.md | 19 ++++++++++--------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Frends.Community.JSON/Frends.Community.JSON.csproj b/Frends.Community.JSON/Frends.Community.JSON.csproj index 53c5ae2..1e0b5a3 100644 --- a/Frends.Community.JSON/Frends.Community.JSON.csproj +++ b/Frends.Community.JSON/Frends.Community.JSON.csproj @@ -9,7 +9,7 @@ true Frends true - 1.0.3 + 1.0.4 @@ -19,7 +19,7 @@ - + diff --git a/Frends.Community.JSON/JsonTasks.cs b/Frends.Community.JSON/JsonTasks.cs index fc77d5a..e41fdca 100644 --- a/Frends.Community.JSON/JsonTasks.cs +++ b/Frends.Community.JSON/JsonTasks.cs @@ -55,7 +55,8 @@ public static JsonMapperResult JsonMapper(JsonMapperInput input, CancellationTok } try { - result = JsonTransformer.Transform(input.JsonMap, input.InputJson.ToString()); + var transformer = new JsonTransformer(); + result = transformer.Transform(input.JsonMap, input.InputJson.ToString()); } catch (Exception ex) { diff --git a/README.md b/README.md index 02af8b2..6d07ba6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Frends.Community.JSON -FRENDS Community Tasks to process Json data. +Frends Community Tasks to process Json data. [![Actions Status](https://github.com/CommunityHiQ/Frends.Community.JSON/workflows/PackAndPushAfterMerge/badge.svg)](https://github.com/CommunityHiQ/Frends.Community.JSON/actions) ![MyGet](https://img.shields.io/myget/frends-community/v/Frends.Community.JSON) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) @@ -14,7 +14,7 @@ FRENDS Community Tasks to process Json data. ## Installing -You can install the task via FRENDS UI Task View or you can find the NuGet package from the following NuGet feed +You can install the Task via Frends UI Task View or you can find the NuGet package from the following NuGet feed https://www.myget.org/F/frends-community/api/v3/index.json and in Gallery view in MyGet https://www.myget.org/feed/frends-community/package/nuget/Frends.Community.JSON ## Building @@ -23,7 +23,7 @@ Clone a copy of the repo `git clone https://github.com/CommunityHiQ/Frends.Community.JSON.git` -Rebuild the project +Build the project `dotnet build` @@ -162,9 +162,10 @@ throws exception in transformation. **This can be avoided by wrapping Input Json ## Change Log -| Version | Changes | -| ------- | ------- | -| 1.0.0 | Initial implementation. Two different tasks combined to one repo. | -| 1.0.1 | Updated version number to fix release CI | -| 1.0.2 | Fixed issue where null values are forced as array of null values. | -| 1.0.3 | Downgraded Newtonsoft.Json to make make task work in Frends 5.3. | +| Version | Changes | +|---------|----------------------------------------------------------------------------------| +| 1.0.0 | Initial implementation. Two different tasks combined to one repo. | +| 1.0.1 | Updated version number to fix release CI | +| 1.0.2 | Fixed issue where null values are forced as array of null values. | +| 1.0.3 | Downgraded Newtonsoft.Json to make make task work in Frends 5.3. | +| 1.0.4 | JsonMapper: Updated JUST.Net to fix issue with concurrect execution of the Task. |