improved RestApiRequest class; added JSONUtils class