Wiki Home

nf Json


Namespace: WIN_COM_API
nfJson is a free set of lightweight functions to provide easy to use,
fast and reliable JSON support for Vfp, part or the VFPx project.

VFPX Project home: https://github.com/VFPX/nfJson
direct download link: https://github.com/VFPX/nfJson/archive/master.zip


Supports:
  • complex nested objects/arrays
  • bi-dimensional arrays
  • vfp collections
  • Performs Json validation
  • Json formatting

  • Benefits:
  • Fast performance
  • Pure vfp code
  • empty based vfp object output ( requires vfp9 )
  • Shipped as standalone Prgs ( just set path to \nfjson folder )
  • True reliable vfp option

  • Usage:

    Json to Vfp Object:

    oJson = nfJsonRead( cJsonString [, isFileName,lReviveCollections] )

    VFP Object to Json:

    cJsonString = nfJsonCreate( oVfp [, lFormattedOutput, lNoNullArrayItems,cRootName,aMembersFlag] )

    VFP cursor to Json ( common mode ):

    nfCursorToJson( [ lReturnArray, lArrayofValues, lIncludestruct, lFormattedOutput ])

    VFP cursor to Json ( Json suitable for later use of nfJsonToCursor() ):

    nfCursorToJson4vfp()

    Json to Cursor ( from Json created using nfCursorToJson4vfp ):

    nfJsonToCursor( cJson [, cCursorName , lForceImportFromArray ] )


    Cursor to Object:

    oVfp = nfCursorToObject( [lCopyToArray, lIncludeStruct ])
    ( Topic last updated: 2017.06.18 07:59:01 PM )