json-to-obj and vice-versa