Actually JSON does not use a template at all as of now. I think it could be refactored when needed and get a nice way by that time.