More help needed with json tiddlers

Hello TW community,

There have been several discussions recently about how to deal with JSON tiddlers (reading, dealing with object structure, deleting, …).

However I am missing some elements to join the dots.

More especially I would like to create / read / write / update JSON tiddlers that contains a set of tiddlers with some selected set of their fields. For instance:

{
    "A tiddler": {
        "icon": "my-icon",
		"color" : "#fedcba"
	},
    "Another tiddler": {
        "icon": "another-icon",
		"color" : "#abcdef"
	}
}

How can I achieve the following use case:

  1. add a tiddler with a set of defined fields inside the json data tiddler
  2. add a field name and value to a tiddler already in the json data tiddler
  3. update the field value of a givent tiddler inside the json data tiddler
  4. extract the list of tiddlers title present in the json data tiddler
  5. extract the field name of a tiddler present in the json data tiddler
  6. extract the field value of a tiddler present in the json data tiddler
  7. remove a field name and value from a tiddler present in the json data tiddler
  8. remove a tiddler present in the json data tiddler

All this action would be triggered using buttons.

BR,

Eskha