fixed the JSON conversion problem for matrix services.