more json conversions + specs
countAll instruction