df_to_json backwards compatibility added