plugins_api does not like conversion from json

Interestingly, there's an error when converting from json but not form serialized data.