JsonPoke and JsonPeek build tasks NuGet Package

JsonPoke and JsonPeek build tasks:
Usage :
JSON Poke:
1.

<JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JValue="Empty-FromTest1" JPath="Project.Name">
</JsonPoke>
2 a. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JArray="@(TestArray1)" JPath="Project.TestArray" Metadata="MyProp;Identity">
</JsonPoke>
2 b.

<JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JArray="t11.txt;t22.txt" JPath="Project.TestArray1">
</JsonPoke>
3. <JsonPoke JsonInputPath="$(MSBuildProjectDirectory)\Project.json" JObject="@(BuildNumber)" JPath="Project.TestObject" Metadata="Major;Minor;Build">
<PropertyGroup>
<JsonContent>
<![CDATA[{
"Projects":[
{ "Name": "P1", "OutputFile": "P1.json", "Variables": [ "Var1", "Var2" ]},
{ "Name": "P2", "OutputFile": "P2.json", "Variables": [ "Var1", "Var2" ] } ] }
]]>
</JsonContent>
</PropertyGroup>
<JsonPeek JPath="$.Projects" JsonContent="$(JsonContent)">
<Output TaskParameter="Result" ItemName="TestProjects" />
</JsonPeek>
<Message Text="Project.IncludedLibraryVariableSetIds[?(@.Name == 'Lib-69')].Value : @(Lib69Value)" />
<Message Text="Project values: %(TestProjects.Name)" />.




Got any JsonPoke and JsonPeek build tasks Question?





Info

Version: 1.0.9
Author(s): Manish Kumar, Toni Arte
Last Update: Thursday, July 20, 2017
.NET Fiddle: Create the first Fiddle
Project Url: https://bitbucket.org/Manishkp/jsonpeek.msbuild/
NuGet Url: https://www.nuget.org/packages/JsonPoke.MSBuild


Install
Install-Package JsonPoke.MSBuild
dotnet add package JsonPoke.MSBuild
paket add JsonPoke.MSBuild
JsonPoke.MSBuild Download (Unzip the "nupkg" after downloading)

1 package depend on this package.


Tags



STATS

must-have-score

1.1

avg-downloads-per-day

10

days-since-last-release

2712