add json support for external resources