Firstly, what you have written isn't technically "JSON", it's just a JavaScript object. However, you're on the right path. It's not exactly clear what you're asking for but I've expanded on what you have to give you something that will hopefully be helpful regardless.