Custom json serializer for parts of item files, now it can enforce the preferred key order and keep out invalid keys.