to work on json array