Skip to content

Commit

Permalink
v2.4.2 - added JsonataQuery.ToString()
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-barg committed Dec 19, 2023
1 parent a252dfc commit beb86c2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Version>2.4.1</Version>
<Version>2.4.2</Version>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\sgKey.snk</AssemblyOriginatorKeyFile>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Version>2.4.1</Version>
<Version>2.4.2</Version>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\sgKey.snk</AssemblyOriginatorKeyFile>

Expand Down
2 changes: 1 addition & 1 deletion src/Jsonata.Net.Native/Jsonata.Net.Native.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
-->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<Version>2.4.1</Version>
<Version>2.4.2</Version>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\sgKey.snk</AssemblyOriginatorKeyFile>

Expand Down
5 changes: 5 additions & 0 deletions src/Jsonata.Net.Native/JsonataQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@ public JToken Eval(JToken data, EvaluationEnvironment environment)
{
return EvalProcessor.EvaluateJson(this.m_node, data, environment);
}

public override string ToString()
{
return this.m_node.ToString();
}
}
}
1 change: 1 addition & 0 deletions src/TestApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ internal sealed class Program
static void Main(string[] args)
{
JsonataQuery query = new JsonataQuery("$.a");
Console.WriteLine(query);

//from string
{
Expand Down

0 comments on commit beb86c2

Please sign in to comment.