marcingrzejszczak / jsonassert

Simple library to provide fluent interface for JSON assertions
Apache License 2.0
62 stars 9 forks source link

JsonAsserter.isEmpty() does not work for empty objects #28

Closed klara-l closed 6 years ago

klara-l commented 6 years ago

assertThatJson(parsedJson).field("['output']").isEmpty(); crashes with Caused by: java.lang.ClassCastException: net.minidev.json.JSONObject cannot be cast to net.minidev.json.JSONArray

marcingrzejszczak commented 6 years ago

Fixed by https://github.com/marcingrzejszczak/jsonassert/pull/29