Added code to handle json objects as sources of an extension.