Custom dynamic objects pickling for Json