decoder(value) {
                // Convert numbers to numbers and bools to bools
                if (/^(\d+|\d*\.\d+)$/.test(value)) {
                    return parseFloat(value);
                }

                let keywords = {
                    true: true,
                    false: false,
                    null: null
                };
                if (value in keywords) {
                    return keywords[value];
                }

                return decodeURIComponent(value);
            }
Handles creation and updating of in memory resources.

@param {Array} arr - The array to store the processed data.
@param {string} id - The ID of the resource.
@param {string} body - The body of the POST request.
@param {resource} resource - The type of resource.
@returns {Array} - An array containing the HTTP status code and the processed data.