v2: allow specifying alternative name in JSON

Change-Id: I7573bbf09265894c310b559e0bad5d88f4842680