added json parameter, to load json content or direct html