Do TAL processing before json string creation.

@kenrose