add $.toJSON to parse objs method to parse objs