here you have take var myjson = {} as object you can not use push() on object it is for array variable only.
solved How to solve this JSON error
here you have take var myjson = {} as object you can not use push() on object it is for array variable only.
solved How to solve this JSON error