Simplify check in JsonLD::parse() to distinguish between JSON input and filename