Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Determining if JSON is a valid pyui file
-
When I'm outside of Pythonista, what are defining characteristics of pyui files that I might use to separate these from other JSON files?
-
I'd say,
list
ofdict
with('class', 'View')
as one of its items and'frame'
as another key would be pretty telling. But it wouldn't provide 100% absolute dead-sure unmistakable certainty, I'm afraid, so don't use this if trying to control a nuclear reactor or pacemaker -
@Olaf lol, thanks. No nuclear reactors, so I'm good.
-
@Webmaster4o , maybe not what you are looking for, but couldn't you write an extra key out to the files. I assume they would be ignored by Pythonista