Cadena JSON Enum
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
[JsonConverter(typeof(StringEnumConverter))]
public Gender Gender { get; set; }
Unsightly Unicorn
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
[JsonConverter(typeof(StringEnumConverter))]
public Gender Gender { get; set; }
var parsedJson = JSON.parse(json_text);
Result = Object.keys(parsedJson[0]).reduce((acc, key) => {
acc[key] = parsedJson.map(item => item[key])
return acc
}, {})
console.log(JSON.stringify(Result,undefined, 4));
var parsedJson = JSON.parse(json_text);
Result = Object.keys(parsedJson[0]).reduce((acc, key) => {
acc[key] = parsedJson.map(item => item[key])
return acc
}, {})
console.log(JSON.stringify(Result,undefined, 4));