Skip to content

Bug report: Incorrect output when selecting a single property using JMESPath query #2095

@waldekmastykarz

Description

@waldekmastykarz

Description

When you use JMESPath query to select a single property from the object retrieved from the API, CLI incorrectly renders the output in the terminal.

Steps to reproduce

m365 spo get --query 'SpoUrl'

Expected result

https://m365x271534.sharepoint.com

Actual result

14    : 7
15    : 1
16    : 5
17    : 3
18    : 4
19    : .
2     : t
20    : s
21    : h
22    : a
23    : r
24    : e
25    : p
26    : o
27    : i
28    : n
29    : t
3     : p
30    : .
31    : c
32    : o
33    : m
4     : s
5     : :
6     : /
7     : /
8     : m
9     : 3
length: 34

Environment

Latest preview (v3.5.0)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions