Listing items in storage

I suspect I know the answer to this already, but I'm hoping people with more experience might know a trick. Is there a way to list the items in persistent storage the way that the simulator can in it's storage editor, or do I need to add another dictionary and application logic to keep track of this?

  • I haven't found the way to obtain all keys in storage (but you can clear all storage) so have had to use tracker...

    But you don't need it if all data is added from code not from user.

  • I have some hard coded entries in some json files I can fall back on using loadResource. There doesn't appear to be a string.toSymbol() type method, so more hard coding is needed. When I put the symbol in loadResource into an array the compiler complains about not being able to resolve it, so the format must be a little bit different.

  • How do you end up not knowing your keys? You probably shouldn't use user input for keys. But worst case you can have your own dictionary (also stored in the storage) to keep track of all the keys.

  • I guessed it would be me maintaining the list, I was just hoping to save a few bytes of code and storage if there was already an API for it.