code: @Route(method = HttpMethod.GET, uri = "/json")
      public Result usingJsonService(@Parameter("callback") String callback) {
          return ok(json.toJsonP(callback, json.newObject().put("foo", "bar"))).as(MimeTypes.JAVASCRIPT);
      }
docs: tag::json[]