Nicer way to assemble JSON string.