Fix Json serialization assumptions

Also fix limits to 10 for now.
Sort and align output

sadly, not so functional any more.