.text() converts objects to JSON