Tried to fix json encoding of dicts, but I give up now.
Made a little more progress on MapEditor