Quantcast
Channel: VFPX
Viewing all articles
Browse latest Browse all 3798

Updated Release: nfJson (feb 24, 2016)

$
0
0
Functions are included as single prgs.
No additional dependencies / Requires VFP9
Usage examples:
  • oJson = nfJsonRead(cJsonString , isFileName,lReviveCollections)
  • cJsonString = nfJsonCreate(oVfp, lFormattedOutput, lNoNullArrayItems,cRootName)
  • nfJsonToCursor(cJson, cCursorName , lForceImportFromArray)
  • nfCursorToJson4vfp()&& calls nfCursorToJson with options set to create Json for later convert back to cursor in Vfp using nfJsonToCursor()
  • nfCursorToJson(lReturnArray, lArrayofValues, lIncludestruct, lFormattedOutput)
  • nfCursorToObject(lCopyToArray, lIncludeStruct)

Included is examples.prg and collectiontest.prg; run from test folder and see sample code and output.
( Documentation is on the way ) - included is JsonSamples folder with many json files for you to test:
  • youtubesearch.json
  • cycloneForecast.json
  • dropbox.json
  • googleMapsDistance.json
  • iphone photo.json
  • mapquest.json
  • mySimpleArray.json
  • tweeter.json
  • weatherService.json
  • yahooweather.json

Any questions please use the discussions section.

Viewing all articles
Browse latest Browse all 3798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>