fixing json dumps logic for meta driver