API Documentation for: 0.6.0
Show:

JSONLoader Class

Defined in: JSONLoader:41
Module: PreloadJS

A loader for JSON files. To load JSON cross-domain, use JSONP and the JSONPLoader instead. To load JSON-formatted manifests, use ManifestLoader, and to load EaselJS SpriteSheets, use SpriteSheetLoader.

Constructor

JSONLoader

(
  • loadItem
)

Defined in JSONLoader:41

Parameters:

Item Index

Methods

Methods

_formatResult

(
  • loader
)
HTMLLinkElement | HTMLStyleElement private

Defined in _formatResult:73

The result formatter for JSON files.

Parameters:

Returns:

HTMLLinkElement | HTMLStyleElement:

canLoadItem

(
  • item
)
Boolean static

Defined in canLoadItem:60

Determines if the loader can load a specific item. This loader can only load items that are of type JSON.

Parameters:

  • item LoadItem | Object

    The LoadItem that a LoadQueue is trying to load.

Returns:

Boolean:

Whether the loader can load the item.