Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

JsonPathNodeArrayOfObjects.verifyThatArrayIndexIsSpecifiedCorrectly #1

@GoogleCodeExporter

Description

@GoogleCodeExporter
// start with [ contains a number in between and ends with ]
nodeKey.matches("^\\[\\d+\\]$") &&
// starts with "[0" but is not "[0]" e.g. 0123 is not valid.
// *TODO collapse these two conditions into one with a
// neatly compiled REGEX.*
nodeKey.startsWith("[0") && nodeKey.equals("[0]"),

Original issue reported on code.google.com by sudhirb...@gmail.com on 30 Jun 2011 at 7:34

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions