oops concept and json array issues resolved