Join Nostr
2025-09-20 15:40:28 UTC

Šime Vidas on Nostr: For JSON data that contains info about people, what do you think of the idea of using ...

For JSON data that contains info about people, what do you think of the idea of using an array of strings for the name?

{
"workers": [
{
"name": ["John", "Doe"],

},

]
}

(as an alternative to having separate "firstName" and "lastName" fields)

worker.name.join(' ') // full name
worker.name.at(-1) // last name