Skip to content

Added ablility to change " symbol arout the keys#43

Open
Strongleong wants to merge 1 commit intocaldwell:masterfrom
Strongleong:key_surround
Open

Added ablility to change " symbol arout the keys#43
Strongleong wants to merge 1 commit intocaldwell:masterfrom
Strongleong:key_surround

Conversation

@Strongleong
Copy link

@Strongleong Strongleong commented Jul 4, 2022

I decide to implement #42 by myself. It was not hard 🙂
I added set_key_surronud_symbol function to API. It accepts string and wrappes keys around it:

renderjson.set_key_surround_symbol('"');
renderjson(data)

// Output:
// "key1": {
//   "key2": "a",
//   "key3": 5
// .......
// }

renderjson.set_key_surround_symbol("|");
renderjson(data)

// Output:
// |key1|: {
//   |key2|: "a",
//   |key3|: 5
// .......
// }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant