complete the JSONString method