# Data Modeling in JSONexus

JSONexus allows you to model your data flexibly using JSON documents, providing a schema-less approach to database design.

### 1. Document-based Modeling

JSONexus follows a document-based data model, where each record is represented as a JSON document. This approach allows for flexible schema design and easy scalability.

### 2. Example

Suppose we have a collection of users with the following attributes:

```json

        {
            users: [
                {
                    name: "Alice",
                    age: 30,
                    email: "alice@example.com",
                    "_id": "6b72a5d2-6f95-4e49-a152-e24e4415fc0e"
                },
                {
                    name: "Bob",
                    age: 25,
                    email: "bob@example.com",
                    "_id": "e24e4415fc0e-6f95-4e49-a152-e24e4415fc"
                },
                {
                    name: "Charlie",
                    age: 35,
                    email: "charlie@example.com",
                    "_id": "f85fb55f-10a8-409f-bdd1-ffdc850c67be"
                }
            ]
        }
    
```

This JSON document represents a user with a name, age, and email. You can store and query such documents in JSONexus without defining a fixed schema.

### 3. Additional Resources

Refer to the [documentation](https://jsonexus.gitbook.io/jsonexus/getting-started) for detailed information on data modeling, including best practices and examples.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jsonexus.gitbook.io/jsonexus/data-modeling-in-jsonexus.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
