todo test json with single array or number (for in may break)