Python Json Check If Value Is Array Primitive Type