fix json pattern bug: jsonobject and jsonarray length didnt compare