performance improvements for Tinebase_Convert_Json