You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: xASL_io_ReadJson.m
    path of file: ./repos/ExploreASL/Functions/InputOutput
    
    the code of the file until where you have to start completion: function json = xASL_io_ReadJson(pathJSON)

    
function json = xASL_io_ReadJson(pathJSON)
%xASL_io_ReadJson Reads the content of a JSON file and converts it to a Matlab structure
%
% FORMAT: json = xASL_io_ReadJson(pathJSON)
%
% INPUT:
%   pathJSON           - path to the JSON file (STRING, REQUIRED)
%
% OUTPUT:
%   json               - output Matlab structure with the decoded JSON
%
% -----------------------------------------------------------------------------------------------------------------------------------------------------
% DESCRIPTION: This function reads a JSON file located at the given path and decodes it using the Matlab built-in function JSONDECODE. The output is a Matlab
% structure with the decoded JSON content.
%
% EXAMPLE: json = xASL_io_ReadJson('/tmp/test.json');
% __________________________________
% Copyright (C) 2015-2023 ExploreASL


%% ------------------------------------------------------------------------------------------------
%% 0.   Administration
if nargin < 1 || isempty(pathJSON)
	error('The path to the JSON file is missing.'); % If the path is missing, we exit with an error
end