-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lyd_new_path handle json encoded string leaves
According to ietf rfc 8259, strings are always surrounded by double quotes. This means, for storing within libyang, we must strip input data of these, and take the value as the stripped portion. Example: const char * data = "\"Great View\""; should yield const char *value = "Great View"; For this, a new option is used `LYD_NEW_PATH_JSON_VALUE`
- Loading branch information
IrfanMohammad
committed
Nov 21, 2023
1 parent
0a7e3a6
commit ac37485
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters