Ha! The reason is simple - I didn't know that you can pass a replacer function :-) Thnx for the tip, it will definitively simplify the code! Will change and push an amended commit.