Skip to content

Commit 77e652d

Browse files
authored
docs: slash in attributes
1 parent c01061f commit 77e652d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

docsite/docs/30-basics.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ sidebar_position: 30
1212

1313
- All functional methods and types are defined in `zif_ajson` interface.
1414
- Methods have aliases in the `zcl_ajson` class, however please restrain from using them directly as they may be *deprecated* in future.
15-
- Json attributes are addressed by path in form `/obj1/obj2/value` of e.g. `->get( '/a/b/c' )` addresses `{ "a": { "b": { "c": "this value !" } } }`
15+
- JSON attributes are addressed by path in form `/obj1/obj2/value` of e.g. `get( '/a/b/c' )` addresses `{ "a": { "b": { "c": "this value !" } } }`. If an attribute contains slashes, for example in `{ "a/b/c": 10 }`, you have to replace the slashes with tabs (`\t`) to access the value e.g., `get( |/a\tb\tc| )`.
1616
- Array items addressed with index starting from 1: `/tab/2/val` -> `{ "tab": [ {...}, { "val": "this value !" } ] }`
1717

18-
## Support for '/' in attribute names
19-
20-
*TBD*
21-
2218
## Chaining
2319

2420
- `Set` (and some other) methods also return `me` to support chaining: `li_json->set(...)->set(...)->touch_array(...)->push(...)`.

0 commit comments

Comments
 (0)