Property | Type | Description | |
---|---|---|---|
$validExtensions | array | Valid file extensions for this loader |
Method | Description | |
---|---|---|
load ( string $resource, string | null $type = null ) : array | Load a JSON string/file | |
supports ( string $resource, string $type = null ) : boolean | Return whether or not the passed in resrouce is supported by this loader |
Method | Description | |
---|---|---|
isJson ( string $string ) : boolean | Determine whether a given string is supposed to be a Json string This is a very simplified validation to avoid calling json_decode (which is much more expensive). If the json is invalid, it will throw an exception when we actually load it. |
public static array $validExtensions | ||
return | array |