non-order dependent testing for JSON