Added the ability for the loader to read a json string directly