wip: use real json rather than tuples