Python Check If Json Array Syntax