Fixed LINT errors/warnings, added JSON formatting to all REST examples