Skip to content

JSON.GET never returns an array #3711

@tishun

Description

@tishun

Bug Report

The initial design of the JSON.GET envisioned it could return a list of JsonElements if several JsonPath arguments are provided, but this was a misinterpretation of the documentation. Instead JSON.GET would always return a single JSON document, for the case where multiple paths are provided this document would contain a map of JsonPath elements as ids and the respective JsonArray with the result as values.

Current Behavior

JSON.GET currently returns List<JsonElement>

Expected behavior/code

JSON.GET should instead always return a single JsonElement

Environment

  • Lettuce version(s): 6.8.0.RELEASE to latest
  • Redis version: any

Possible Solution

Provide a new API and deprecate the old one

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions