I am new to Json and Rest but I need to set up my desktop exe to do a rest call to get tax info from Taxjar.com's API. When I attempt to create a simple json I get the error could not load file or assembly Newtonsoft.json. Is there something else I need to install? All I purchased was the West Wind client tools. I am on a Windows 10 PC with VFP 90
You need to distribute the required dependencies for this to work.
For wwJsonSerializer you'll need:
- wwJsonSerializer.prg
- wwDotnetBridge.prg
- wwDotnetBridge.dll
- newtonsoft.json.dll
- wwutils.prg
- wwapi.prg
- wwcollections.prg
You can always check for PRG dependencies in the source file (wwJsonSerializer.prg
) which has SET PROCEDURE
to all the needed dependencies. Those PRG files should be pulled in automatically as you reference them as long as they are in your path.
The DLLs also should be picked up from the path - make sure they are in the path or copy them to your application directory.
Dependencies are listed in the documentation:
+++ Rick ---
You need to distribute the required dependencies for this to work.
For wwJsonSerializer you'll need:
- wwJsonSerializer.prg
- wwDotnetBridge.prg
- wwDotnetBridge.dll
- newtonsoft.json.dll
- wwutils.prg
- wwapi.prg
- wwcollections.prg
You can always check for PRG dependencies in the source file (wwJsonSerializer.prg
) which has SET PROCEDURE
to all the needed dependencies. Those PRG files should be pulled in automatically as you reference them as long as they are in your path.
The DLLs also should be picked up from the path - make sure they are in your FoxPro path or copy them to your application directory as you'll need to ship the DLLs with your application.
Dependencies are listed in the documentation:
+++ Rick ---