struct to JSON string doesnt work

Hi. I am trying to convert my map of strings to integers to json string it doesnt work. It is realy simple but I still couldnt figure out why it doesnt work.


It prints false no matter what I do.

Try using structs instead of mappings.

Or try printing the string, not the boolean “success.”