West Wind Internet and Client Tools
New to Json
Gravatar is a globally recognized avatar based on your email address. New to Json
  uprightguy
  All
  Nov 5, 2020 @ 02:57pm

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

Gravatar is a globally recognized avatar based on your email address. re: New to Json
  Rick Strahl
  uprightguy
  Nov 5, 2020 @ 03:37pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: New to Json
  Rick Strahl
  uprightguy
  Nov 5, 2020 @ 03:37pm

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 ---

© 1996-2020