Convenience method to get current element as JsonObject
if current element is not a JsonObject
Thanks for your feedback!