add JSON support for /v1/endpoints (fixes mesosphere/marathon#28)
PR feedback
Merge pull request #30 from tpetr/master

add JSON support for /v1/endpoints (fixes mesosphere/marathon#28)