You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking for a working reference to implement a call to custom function and found below #272 (comment)
But it gives me the following error "Unable to find specific method!" when i tired. Please note i'm using JUST.Net 4.3.0
Module Program
Sub Main(args As String())
Dim transformer As String = String.Empty
Dim transformedString As String = String.Empty
Dim jsStr As String = String.Empty
jsStr = File.ReadAllText(Directory.GetCurrentDirectory() + "\input.json")
Dim context = New JUSTContext()
context.RegisterCustomFunction(Nothing, "JUST.UnitTests.Helper", "ReturnValue", "returnValue")
transformer = File.ReadAllText(Directory.GetCurrentDirectory() + "\inputTransformer.json")
transformedString = New JsonTransformer(context).Transform(transformer, jsStr)
Console.Write(transformedString)
Console.ReadLine()
End Sub
End Module
Namespace JUST.UnitTests
Public Class Helper
Public Shared Function ReturnValue() As String
Return "Works"
End Function
End Class
End Namespace
The text was updated successfully, but these errors were encountered:
I was looking for a working reference to implement a call to custom function and found below
#272 (comment)
But it gives me the following error "Unable to find specific method!" when i tired. Please note i'm using JUST.Net 4.3.0
The text was updated successfully, but these errors were encountered: