plugins_api does not like conversion from json

Interestingly, there's an error when converting from json but not form serialized data.
Merge remote-tracking branch 'upstream/develop' into develop