mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
23 lines
415 B
C++
23 lines
415 B
C++
#include <Core/Core.h>
|
|
|
|
using namespace Upp;
|
|
|
|
CONSOLE_APP_MAIN
|
|
{
|
|
StdLogSetup(LOG_COUT|LOG_FILE);
|
|
|
|
HttpRequest r("https://raw.githubusercontent.com/ultimatepp/UppHub/main/nests.json");
|
|
|
|
String s = r.Execute();
|
|
|
|
Value v = ParseJSON(s);
|
|
if(v.IsError()) {
|
|
s.Replace(""", "\"");
|
|
s.Replace("&", "&");
|
|
v = ParseJSON(s);
|
|
}
|
|
|
|
ASSERT(!v.IsError());
|
|
|
|
LOG("========== OK");
|
|
}
|