Skip to content

Assert Section Signals Invalid JSON For Array With String Values #7556

@x80486

Description

@x80486

I have checked the following:

  • I have searched existing issues and found nothing related to my issue.

This bug is:

  • making Bruno unusable for me
  • slowing me down but I'm able to continue working
  • annoying
  • this feature was working in a previous version but is broken in the current release.

Bruno version

3.1.4

Operating System

macOS Tahoe 26.3.1 (a)

Describe the bug

I usually have some basic assertions for all requests. I noticed that Bruno is failing a simple res.body isJson assertion now for some responses that are just a collection of string values; for instance:

[
  "A55001213ZX0A"
]

.bru file to reproduce the bug

meta {
  name: Some Identifier
  type: http
}

get {
  url: {{api-host}}/resource/{{resource-id}}
  body: none
}

headers {
  Accept: application/json
}

vars:pre-request {
  resource-id: A55001213ZX0A
}

assert {
  res.status: eq 200
  res.body: isJson
}

Screenshots/Live demo link

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions