Bug fix: getRecord : Handle json record with root name