Properly separate JSON elements

Wildly inelegant. Fixes #37.