JsonLoader Class
The json file loader is used to load in JSON data and parse it When loaded this class will dispatch a 'loaded' event If loading fails this class will dispatch an 'error' event
Constructor
JsonLoader
    
        
            (
    
    
    
    
    
    
    
    
    
    - 
                    
                        url
- 
                    
                        crossorigin
Parameters:
- 
                    
                        urlStringThe url of the JSON file 
- 
                    
                        crossoriginBooleanWhether requests should be treated as crossorigin 
Methods
load
    
        ()
    
    
    
    
    
    
    
    
    
    Loads the JSON data
onError
    
        ()
    
    
    
    
        private
    
    
    
    
    
    
    Invoke when error occured
onJSONLoaded
    
        ()
    
    
    
    
        private
    
    
    
    
    
    
    Invoke when JSON file is loaded
onLoaded
    
        ()
    
    
    
    
        private
    
    
    
    
    
    
    Invoke when json file loaded
Properties
baseUrl
    String
    
    
    
    
    
    [read-only] The base url of the bitmap font data
crossorigin
    Boolean
    
    
    
    
    
    Whether the requests should be treated as cross origin
loaded
    Boolean
    
    
    
    
    
    [read-only] Whether the data has loaded yet
url
    String
    
    
    
    
    
    The url of the bitmap font data
