Parse string to JSON obj before checking assert's.