Date:  07/27/2018 04:02:09 PM Msg ID:  004957
From:  Olatunji Beckley Thread:  004957
Subject:  Access foxweb\'s JSON sting in Javascript
Hi All,
 
This is really not a foxweb issue, but need someone to help or suggest a solution.
 
I would like to access a json string generated with fwJSON.WriteCursor() as a JSON object in javascript function.  
 
E.g. (Sample Foxweb  Script):
 
SELECT * FROM SON5200 INTO CURSOR crScharge ORDER BY Servcode
IF _TALLY > 0
    SchargeJSON = fwJSON.WriteCursor()
ENDIF
 
Is there a way to reference the SchargeJSON variable/object in a javascript function?
 
TIA