Add json export support