Try using an iterating json encoding