build static method

JsonPointer build(
  1. Iterable<String> tokens
)

Creates a new JSON Pointer from reference tokens.

Implementation

static JsonPointer build(Iterable<String> tokens) => tokens.fold(
    EmptyJsonPointer(), (parent, token) => JsonPointerSegment(token, parent));