JsonEncode, JsonDecode Lib

JsonEncode, JsonDecode Lib

Postby byron.hopp » Sun Dec 13, 2015 8:51 pm

Does anybody have a lib which will provide the functions hb_JsonEncode, and hb_JsonDecode to my FiveWin / xHarbour project. I found c source code on line for these functions but I have no experience in creating a Lib to utilize this code. I have been working on using restful web services and thanks in part to this group I believe I am there. However I need to parse the json that is returned. I wrote something for simple Json, but more complex the structure it gets more difficult. I believe it could take days to get this right (if ever). I decided I am better using the functions some 'smart person' wrote instead. Is it reasonable to incorporate this code into a Lib and utilize it, or might there be version issues. Or if anybody has a lib with this capability please let me know.

I believe these functions are similar to json.parse, and json.stringify.

Thanks,

Byron ...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 382
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: JsonEncode, JsonDecode Lib

Postby Colin Haig » Mon Dec 14, 2015 1:59 am

Hi Byron

I have used hb_jsonencode, hb_jsondecode and TIpClientHttp() with harbour and fivewin ( with help from Daniel Garcia Gil) to connect
to a accounting package restful API - you can contact me by email colin at techdata dot net dot au

Colin
Colin Haig
 
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 119 guests