Where do C# anonymous types fall? From a functional perspective, they are a purely structural type.
Here's a snippet of C# I wrote recently to transform some JSON:
var transformed = media.Select(m => {
var parts = m.Split('/');
return new {
addedAtUtc = "2023-05-15T05:59:31.398Z",
originTripUid = parts[4],
path = $"{parts[4]}/{parts[5]}",
rank = "",
size = 103978,
stored = true,
type = "document",
};
})
File.WriteAllText(
Path.Combine(Environment.CurrentDirectory, "output.json"),
System.Text.Json.JsonSerializer.Serialize(transformed)
);
It would be easy to mistake this as JS at a quick glance.