Skip to content

Introduce JsonIndexAccessor #9383

@sbrannen

Description

@sbrannen

Spring Framework 6.2 introduces dedicated support for indexing into custom structures via a new IndexAccessor SPI, with a corresponding CompilableIndexAccessor SPI and a ReflectiveIndexAccessor implementation.

Spring Integration should consider introducing a JsonIndexAccessor as a companion to the existing JsonPropertyAccessor, potentially removing some (if not all) of the "indexing" related functionality from JsonPropertyAccessor, thereby allowing the JsonPropertyAccessor to focus on property access while the JsonIndexAccessor focuses on index access.

Documentation on the new features in Spring Framework can be found in the reference manual.

In addition, a proof-of-concept JacksonArrayNodeIndexAccessor can be found in Spring Framework's test suite:

https://github.com/spring-projects/spring-framework/blob/a9a1798012242facac264cc468a23d01155f3e26/spring-expression/src/test/java/org/springframework/expression/spel/IndexingTests.java#L813-L850

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions