var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/testjson', function(req, res, next) {
  var data={
    "status":1,
    "msg":"ok",
    "data":{
      "name":"peter",
      "age":"17"
    }
  };
  res.json(data);
});

module.exports = router;

@@ -59,16 +59,109 @@
 ter();%0A%0A
+var data=%7B%0A  %22status%22:1,%0A  %22msg%22:%22ok%22,%0A  %22data%22:%7B%0A    %22name%22:%22peter%22,%0A    %22age%22:%2217%22%0A  %7D%0A%7D;%0A%0A
 /* GET h
@@ -228,116 +228,172 @@
 ) %7B%0A
+%0A
   var 
-data=%7B%0A    %22status%22:1,%0A    %22msg%22:%22ok%22,%0A    %22data%22:%7B%0A      %22name%22:%22peter%22,%0A      %22age%22:%2217%22%0A    %7D%0A  %7D;%0A
+_callback = req.query.callback;%0A  if (_callback)%7B%0A    res.type('text/javascript');%0A    res.send(_callback + '(' + JSON.stringify(data) + ')');%0A  %7D%0A  else%7B%0A  
   re
@@ -406,16 +406,20 @@
 (data);%0A
+  %7D%0A
 %7D);%0A%0Amod

add a test API