Use JSON instead of templates. Initial work.