struct -> json, other text/plain