Added optional "name" field, corrected JSON format