make /package/foo?json return JSON template context as a JSON object

Because this way JSON doesn't have to have a value. :)