fixed bug: format for JSON in rest Plugin