Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list items from json nested arrays? #43

Open
jbmerli opened this issue Jan 21, 2025 · 0 comments
Open

How to list items from json nested arrays? #43

jbmerli opened this issue Jan 21, 2025 · 0 comments

Comments

@jbmerli
Copy link

jbmerli commented Jan 21, 2025

Hi!

This is the copy of my reddit post as you requested.

I'm trying to use the plugin to display information about our customers in an Obsidian note, but I have a hard time figuring out how to display json nested arrays.. is it even possible?

I'm trying to list products like that:

show: {..} -> clientProducts -> {..} -> product -> name

.. from this content:

[
  {
    "id": 2,
    "name": "company A",
    "description": "lorem ipsum",
    "clientProducts": [
      {
        "id": 2,
        "product": {
          "id": 2,
          "name": "product A"
        },
        "hostings": [],
        "status": "client.status.normal",
        "hasDockerSubscription": false
      },
      {
        "id": 152,
        "product": {
          "id": 12,
          "name": "product B"
        },
        "hostings": [],
        "status": "client.status.normal",
        "hasDockerSubscription": false
      },
      {
        "id": 160,
        "product": {
          "id": 14,
          "name": "product B"
        },
        "hostings": [],
        "status": "client.status.normal",
        "hasDockerSubscription": false
      }
    ]
  }
]

But I only get the first product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant