Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Excute script processor check json contain attribute or not

Excute script processor check json contain attribute or not

New Contributor

HI

I have an error in execute script processor json may have attributes or not

so I tried to made below condition

if 'next' in json.loads(str(obj[i]["body"]))["paging"]:


but I got error the same error if json haven't attribute

1 REPLY 1
Highlighted

Re: Excute script processor check json contain attribute or not

Contributor

Your question is bad formulated , can you post the error or what is this execute script processor json ?

There is no executescriptjson processor

Don't have an account?
Coming from Hortonworks? Activate your account here