Skip to content

Not clear why JSON response receives an auto-generated key #51

@gabrielfior

Description

@gabrielfior

Describe the bug
When calling the method result = sg.query_json(), the returned object looks roughly like this:

$result
[{'xcfb7c9c5f581c978': [{"title":"title1", "id":1}, {"title":"title2",id":2}

It's not clear to me (also could not find anything in the docs) why the results are indexed by this (apparently random) key. Isn't it easier to just return all flattened items?
I apologize if this behaviour is documented somewhere.

To Reproduce

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Python version (please complete the following information):

  • 3.10.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions