Added support to load a JSON object from a variable, not a file URL