take the following NAME_1 code and implement the "add" method
```
public class SinglyLinkedList<T> {

    public class NAME_2 {
        T data;
        NAME_2 next = null;

        protected NAME_2(T data) {
            this.data = data;
        }
    }

    private NAME_2 head = null;

    public boolean isEmpty() {
        return (head == null);
    }

    public void add(T o, int position) {
        // Diese Methode ergänzen
    }

    public int size() {
        int count = 0;
        NAME_2 cursor = head;
        while (cursor != null) {
            count++;
            cursor = cursor.next;
        }
        return count;
    }

    public T get(int position) {
        if (position < 0)
            throw new IndexOutOfBoundsException();
        NAME_2 cursor = head;
        for (int pos = 0; pos < position; pos++) {
            if (cursor == null)
                throw new IndexOutOfBoundsException();
            cursor = cursor.next;
        }
        if (cursor == null)
            throw new IndexOutOfBoundsException();
        return cursor.data;
    }
} I want the entire output in JSON format.
user