Get json via dll

 

Hello I have a code that goes through WebRequest I get it from json web address How can I get it via Dll?


   string url="https://nfs.faireconomy.media/ff_calendar_thisweek.json";
   string header=NULL;
   char data[];
   char result[];
   string res_header;
   int kod=WebRequest("GET",url,header,5000,data,result,res_header);
   Print(kod);
   Print(GetLastError());
   CJAVal Myjason;
   Myjason.Deserialize(result);

 
Sadegh Hamzehei:

Hello I have a code that goes through WebRequest I get it from json web address How can I get it via dll?


Very simply, you'll need for that a JSON parser as a DLL. 

 My opinion, it's not the best option, but if it's really what you need, here's some link you might find useful : 

  • https://github.com/zserge/jsmn (light)
  • https://github.com/JamesNK/Newtonsoft.Json (popular)
It'll need to be compiled & wrapped accordingly to your need then implemented in your code. 
Reason: