changed the nature of setJson so it'll allow more complex json objects