Fixed a bug in JsonPlugin.