Add serialize json support