/** * @import { AppBase } from '../app-base.js' */ /** * Resource handler for the `json` asset type. Loads a JSON file and parses it into the JavaScript * value it encodes: an object, array, string, number, boolean or null. * * @category Asset */ export class JsonHandler extends ResourceHandler { /** * Create a new JsonHandler instance. * * @param {AppBase} app - The running {@link AppBase}. * @ignore */ constructor(app: AppBase); /** * TextDecoder for decoding binary data. * * @type {TextDecoder|null} * @private */ private decoder; /** * Parses raw DataView and returns string. * * @param {DataView} data - The raw data as a DataView * @returns {object} The parsed resource data. * @ignore */ openBinary(data: DataView): object; } import { ResourceHandler } from './handler.js'; import type { AppBase } from '../app-base.js';