Firstly if you could paste the actual JSON in your question that would go along way to helping figure out the issue.
This is probably where you're going wrong
stories: [
{'<>':'ul','class':'stories','html':function() {
return($.json2html(this.groups,transforms.group));
}}
],
Let me run though how this works
First
$('#stories').json2html(data, transforms.stories);
Transforms the data object(s) into stories
stories: [
{'<>':'ul','class':'stories','html':function() {
return($.json2html(this.groups,transforms.group));
}} ],
Stories transforms the objects under the "groups" property into a group
group: [
{"<>": "li", "id":"id", "html":[
{"<>": "span", "html": "${AUTHOR} ${HEADLINE}"}
]}
]
Group transforms the group object into a list item with a span.
So you're json object better look something like
[{"groups":[{"AUTHOR":"Someone","HEADLINE":"Someheadline"},..]}]
Though since groups was just used as an example I would suspect your json object looks more like this (best to paste that actual JSON in your question)
[{"AUTHOR":"Someone","HEADLINE":"Someheadline"},..]
In that case just use the following code snipet should work. Keep in mind that the transform is just a representation of the html (template) that you want for each object in the JSON array from your $.getJSON
var data = [{"AUTHOR":"Someone","HEADLINE":"Someheadline"}];
var transforms = {
story: [
{"<>": "li", "id":"id", "html":[
{"<>": "span", "html": "${AUTHOR} ${HEADLINE}"}
]}
]};
$("#stories").json2html(data,transforms.story);
//OR using getJSON
$.getJSON( "news/list/category/news/format/json", function(data) {
$('#stories').json2html(data, transforms.story);
});