Wasn't nesting json correctly