Is there any possibility of emitting json for this instead?