Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

-o json doesn't produce JSON formatted output #101

@ekquasar

Description

@ekquasar

The command using -o json still produces table-formatted output:

> fsoc -o json uql "FETCH id FROM entities(k8s:workload)"

✓ Platform API call (POST /monitoring/v1/query/execute)
 id                                            
===============================================
 k8s:deployment:JT6tRLs2ODen18HIbDIB1w         
 k8s:deployment:b6N73TQ4P0CPIzgOXcJ59Q         
 k8s:deployment:Ez43uF6+O4qSdb1JCHzn/Q         
 k8s:deployment:KdZMpMLAMBu5pr9fr+thQg         
 k8s:deployment:dLbyCKq/OSChG8DXlHC7sg         
 k8s:deployment:4we+hv8mPpOqzQpFV7DE+g
...

Using latest FSOC:

> fsoc version

fsoc version 0.37.0

While moving the -o json to the end of the command works:

> fsoc uql "FETCH id FROM entities(k8s:workload)" -o json

✓ Platform API call (POST /monitoring/v1/query/execute)                      
{                                                                            
    "model": {                                                               
        "id": "string"                                                       
    },                                                                       
    "data": [                                                                
        {                                                                    
            "id": "k8s:deployment:JT6tRLs2ODen18HIbDIB1w"                    
        },                                                                   
        {                                                                    
            "id": "k8s:deployment:b6N73TQ4P0CPIzgOXcJ59Q"                    
        },                                                                   
        {                                                           
...

, the above is still a bug IMHO.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions