Multiple Posts Format like mdx and json

Hi my config,yml consist of

  • name: “posts”
    label: “Posts”
    folder: “src/pages/posts”
    extension: “mdx”
    format: “frontmatter”
    create: true
    slug: “{{slug}}”
    identifier_field: slug
    summary: “{{title}}”
    fields:
    • label: “Slug”
      name: “slug”
      widget: “string”
    • label: “Title”
      name: “title”
      widget: “string”
    • label: “Publish Date”
      name: “date”
      widget: “datetime”
      format: “YYYY-MM-DD”
      dateFormat: “YYYY-MM-DD”
      timeFormat: false
    • label: Author
      name: “author”
      widget: relation
      collection: “meta”
      file: “authors”
      searchFields:
      • “authors.*.name”
        displayFields:
      • “authors..name"
        valueField: "authors.
        .slug”
    • label: Tags
      label_singular: “Tag”
      name: “tags”
      widget: list
      summary: “{{fields.tag}}”
      field:
      label: Tag
      name: tag
      widget: relation
      collection: “meta”
      file: “tags”
      searchFields:
      - “tags..name"
      displayFields:
      - "tags.
      .name”
      valueField: “tags.*.slug”
    • label: “Feature Image”
      name: “featureImage”
      widget: “image”
    • label: “Body”
      name: “body”
      widget: “markdown”

i want to read posts from posts folder with json format as well , is there any way i can do that

I think you’d have to create another collection with the same config and use JSON as the extension in that one. Not sure if there’s any better way or if you can add multiple extensions in the same extension field.