[ts.parse] fix validation bug in str/unicode json