Proper way to implement array of objects as Craft field I'm using Craft CMS for the first time and have a question about the proper/best practice to store what would equate to an array of objects (or just a plain array) in Javascript or JSON.

Say I'd like to store a number of entries with the following shape :

{
    newspaper: 'New York Times',
    article: 'How to Write Web Apps Without Help From Stack Overflow',
    authors: [
        {
            name: 'John Doe',
            title: 'Staff Writer'
        },
        {
            name: 'Jane Smith',
            title: 'Editor'
        }
    ],
    categories: [ 'technology', 'web' ]
}


I understand that I store the first two properties as "Plain Text" fields, but I am confused on the proper way to store the authors and categories arrays as Fields. It looks like I would use a Matrix Field for this, but in the demo I'm referencing, they use Matrix fields in a slightly different way.

Just looking for validation that I should use matrix fields in this case, or some direction otherwise.
Probably you would want to use:


Users field as a relation to one or more of the users
Categories field as a relation to one or more of the categories