fix to JsonCodec constructor

BUG=
R=kathyw@google.com

Review URL: https://chromiumcodereview.appspot.com/183423002