Don't encode JSON layer info twice.