JSON not working. Error BAD POINTER
Posted: Wed Jul 27, 2022 2:35 pm
test.json
test1.pi
Error JSON BAD POINTER
Code: Select all
{
"name": "JOHN"
} test1.pi
Code: Select all
class Test1 implements DOS_Program
{
virtual Start()
{
_console = GetDOS().GetConsole();
json = JSON_Open ("test.json");
json_name= JSON_FindObjectItem(json, "name");
name = JSON_ToString(json_name);
_console.PrintLn("Hola mundo!!: " + name);
_console.Input("", null, 1);
End(0);
}
}