* JSON generation fixed

We no longer generate an array of objects but a single object