MCPcopy Create free account
hub / github.com/eclipsesource/jsonforms / encode

Function encode

packages/core/src/util/path.ts:92–93  ·  view source on GitHub ↗
(segment: string)

Source from the content-addressed store, hash-verified

90 * JSON Pointer has special meaning for "/" and "~", therefore these must be encoded
91 */
92export const encode = (segment: string) =>
93 segment?.replace(/~/g, '~0').replace(/\//g, '~1');
94/**
95 * Decodes a given JSON Pointer segment to its "normal" representation
96 */

Callers 5

renderMethod · 0.90
generateUISchemaFunction · 0.90
TableRendererClass · 0.90
getPropPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…