Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Json4s 3.2.9 ネイティブを使用すると、Scala で不正な JSON を解析するたびにスタック トレースが取得されます。無効な JSON が正しく処理されていることを確認するテストがあり、スタック トレースがテストを混乱させます。これをオフにするか、json4s jackson に変更してオフにすることはできますか?
whichを使用parseOptして、何も出力せずに を返すことができますOption。解析に失敗した場合は、 を返しますNone。
parseOpt
Option
None