mdedit3-api/classes/json.class.php
Guillaume RYCKELYNCK b864cb1820 first commit
2022-01-31 19:06:50 +01:00

16 lines
273 B
PHP

<?php
namespace MdEditApi;
class Json
{
public static function get($file = false)
{
if (\file_exists($file)) {
$filecontent = \file_get_contents($file);
return \json_decode($filecontent, true);
}
return [];
}
}