Python Json Check If Value Is Array A Linear