When returning json dont return arrays with name/values in them. Instead...

... return the {key:value,key:value}